]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
scsi: storvsc: Remove the restriction on max segment size
authorK. Y. Srinivasan <kys@messages.microsoft.com>
Thu, 15 Dec 2016 02:45:59 +0000 (18:45 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
BugLink: http://bugs.launchpad.net/bugs/1663687
Remove the artificially imposed restriction on max segment size.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from linux-next commit 977965283526dd2e887331365da19b05c909a966)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/scsi/storvsc_drv.c

index f0c301569990b4f89188e9a160b9755e05b8890a..9843b77e2914f747f31aaf20dc13b3d314a485f2 100644 (file)
@@ -1267,8 +1267,6 @@ static int storvsc_do_io(struct hv_device *device,
 static int storvsc_device_configure(struct scsi_device *sdevice)
 {
 
-       blk_queue_max_segment_size(sdevice->request_queue, PAGE_SIZE);
-
        blk_queue_bounce_limit(sdevice->request_queue, BLK_BOUNCE_ANY);
 
        blk_queue_rq_timeout(sdevice->request_queue, (storvsc_timeout * HZ));