diff options
author | Mike Sterling <mike.sterling@microsoft.com> | 2011-09-06 16:10:55 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-11 09:35:14 -0800 |
commit | 70908d994241bb79e4f3c546f6ddd262567610c6 (patch) | |
tree | af26fa29d66d0701aaf41652d740af1a99819a8d /drivers/staging/hv/storvsc_drv.c | |
parent | 828ed1259f73a85d47b417edd84e02bbbb52bb87 (diff) | |
download | kernel_samsung_smdk4412-70908d994241bb79e4f3c546f6ddd262567610c6.zip kernel_samsung_smdk4412-70908d994241bb79e4f3c546f6ddd262567610c6.tar.gz kernel_samsung_smdk4412-70908d994241bb79e4f3c546f6ddd262567610c6.tar.bz2 |
Staging: hv: Add support for >2 TB LUN in storage driver.
commit cf55f4a8b6243b42fb91c56d1421db0d36d60f96 upstream.
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@etes.de> for reporting the issue.
Reported-by: Robert Scheck <robert.scheck@etes.de>
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>
Signed-off-by: K.Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/storvsc_drv.c')
-rw-r--r-- | drivers/staging/hv/storvsc_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index cb4a25b..734076b 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -729,6 +729,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); |