Greg KH
2011-Sep-01 20:59 UTC
[PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
On Thu, Sep 01, 2011 at 02:11:52PM -0700, Mike Sterling wrote:> If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently > report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. > Thanks to Robert Scheck <robert.scheck at etes.de> for reporting the issue. > > Signed-off-by: Mike Sterling <mike.sterling at microsoft.com>As I'm guessing you want this to show up as being done by mike.sterling at microsoft.com and not steelforce at gmail.com, can you please resend this from your mike.sterling at microsoft.com account, or put the proper "From:" line in the patch body as described in the file, Documentation/SubmittingPatches so I can apply it correctly? Also, please use the proper "Reported-by:" tag for the bug reporter. Please resend. greg k-h
Mike Sterling
2011-Sep-01 21:11 UTC
[PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. Thanks to Robert Scheck <robert.scheck at etes.de> for reporting the issue. Signed-off-by: Mike Sterling <mike.sterling at microsoft.com> Signed-off-by: K.Y. Srinivasan <kys at microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> --- drivers/staging/hv/hyperv_storage.h | 1 + drivers/staging/hv/storvsc_drv.c | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/staging/hv/hyperv_storage.h b/drivers/staging/hv/hyperv_storage.h index a01f9a0..5af82f4 100644 --- a/drivers/staging/hv/hyperv_storage.h +++ b/drivers/staging/hv/hyperv_storage.h @@ -218,6 +218,7 @@ struct vstor_packet { #define STORVSC_MAX_LUNS_PER_TARGET 64 #define STORVSC_MAX_TARGETS 1 #define STORVSC_MAX_CHANNELS 1 +#define STORVSC_MAX_CMD_LEN 16 struct hv_storvsc_request; diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 7effaf3..26983ac 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -701,6 +701,8 @@ static int storvsc_probe(struct hv_device *device) host->max_id = STORVSC_MAX_TARGETS; /* max # of channels */ host->max_channel = STORVSC_MAX_CHANNELS - 1; + /* max cmd length */ + host->max_cmd_len = STORVSC_MAX_CMD_LEN; /* Register the HBA and start the scsi bus scan */ ret = scsi_add_host(host, &device->device); -- 1.7.1
Mike Sterling
2011-Sep-01 22:11 UTC
[PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. Thanks to Robert Scheck <robert.scheck at etes.de> for reporting the issue. Reported-by: Robert Scheck <robert.scheck at etes.de> Signed-off-by: Mike Sterling <mike.sterling at microsoft.com> Signed-off-by: K.Y. Srinivasan <kys at microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> --- drivers/staging/hv/hyperv_storage.h | 1 + drivers/staging/hv/storvsc_drv.c | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/staging/hv/hyperv_storage.h b/drivers/staging/hv/hyperv_storage.h index a01f9a0..5af82f4 100644 --- a/drivers/staging/hv/hyperv_storage.h +++ b/drivers/staging/hv/hyperv_storage.h @@ -218,6 +218,7 @@ struct vstor_packet { #define STORVSC_MAX_LUNS_PER_TARGET 64 #define STORVSC_MAX_TARGETS 1 #define STORVSC_MAX_CHANNELS 1 +#define STORVSC_MAX_CMD_LEN 16 struct hv_storvsc_request; diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 7effaf3..26983ac 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -701,6 +701,8 @@ static int storvsc_probe(struct hv_device *device) host->max_id = STORVSC_MAX_TARGETS; /* max # of channels */ host->max_channel = STORVSC_MAX_CHANNELS - 1; + /* max cmd length */ + host->max_cmd_len = STORVSC_MAX_CMD_LEN; /* Register the HBA and start the scsi bus scan */ ret = scsi_add_host(host, &device->device); -- 1.7.1
Greg KH
2011-Sep-01 22:22 UTC
[PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
On Thu, Sep 01, 2011 at 03:11:09PM -0700, Mike Sterling wrote:> If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently > report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. > Thanks to Robert Scheck <robert.scheck at etes.de> for reporting the issue. > > Reported-by: Robert Scheck <robert.scheck at etes.de> > Signed-off-by: Mike Sterling <mike.sterling at microsoft.com> > Signed-off-by: K.Y. Srinivasan <kys at microsoft.com> > Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com>Much better, thanks. Is this something that needs to go to older kernels (3.0, 2.6.32, etc.) as well? greg k-h
Mike Sterling
2011-Sep-06 23:10 UTC
[PATCH 1/1] Staging: hv: Add support for >2 TB LUN in storage driver.
From: Mike Sterling <mike.sterling at microsoft.com> If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. Thanks to Robert Scheck <robert.scheck at etes.de> for reporting the issue. Reported-by: Robert Scheck <robert.scheck at etes.de> Signed-off-by: Mike Sterling <mike.sterling at microsoft.com> Signed-off-by: K.Y. Srinivasan <kys at microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> --- drivers/staging/hv/storvsc_drv.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 3686d10..b0c4e56 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -232,6 +232,7 @@ struct vstor_packet { #define STORVSC_MAX_LUNS_PER_TARGET 64 #define STORVSC_MAX_TARGETS 1 #define STORVSC_MAX_CHANNELS 1 +#define STORVSC_MAX_CMD_LEN 16 struct hv_storvsc_request; @@ -1440,6 +1441,8 @@ static int storvsc_probe(struct hv_device *device) host->max_id = STORVSC_MAX_TARGETS; /* max # of channels */ host->max_channel = STORVSC_MAX_CHANNELS - 1; + /* max cmd length */ + host->max_cmd_len = STORVSC_MAX_CMD_LEN; /* Register the HBA and start the scsi bus scan */ ret = scsi_add_host(host, &device->device); -- 1.7.4.1