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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Jan 2017 05:21:11 +0000 (00:21 -0500)
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>
drivers/scsi/storvsc_drv.c

index ccb2101c63850c73b2b080a9db78ec50371502e1..3b1c2f6528b4b8f01451d2f0b93fb7eeee07767d 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));