diff options
author | Christoph Hellwig <hch@lst.de> | 2019-06-17 08:19:56 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-07-16 23:02:10 -0400 |
commit | 83eed4592f19a04004c80e6f256236264db95dd8 (patch) | |
tree | 6dafe2f1b1de1ce47b78e1db8962c2446dc449fa | |
parent | 552a990ca1668895851271df1224cb02003af348 (diff) |
scsi: storvsc: set virt_boundary_mask in the scsi host template
This ensures all proper DMA layer handling is taken care of by the SCSI
midlayer.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/storvsc_drv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 5b6c0f88da59..559fc63e9f1c 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c | |||
@@ -1435,9 +1435,6 @@ static int storvsc_device_configure(struct scsi_device *sdevice) | |||
1435 | { | 1435 | { |
1436 | blk_queue_rq_timeout(sdevice->request_queue, (storvsc_timeout * HZ)); | 1436 | blk_queue_rq_timeout(sdevice->request_queue, (storvsc_timeout * HZ)); |
1437 | 1437 | ||
1438 | /* Ensure there are no gaps in presented sgls */ | ||
1439 | blk_queue_virt_boundary(sdevice->request_queue, PAGE_SIZE - 1); | ||
1440 | |||
1441 | sdevice->no_write_same = 1; | 1438 | sdevice->no_write_same = 1; |
1442 | 1439 | ||
1443 | /* | 1440 | /* |
@@ -1710,6 +1707,8 @@ static struct scsi_host_template scsi_driver = { | |||
1710 | .this_id = -1, | 1707 | .this_id = -1, |
1711 | /* Make sure we dont get a sg segment crosses a page boundary */ | 1708 | /* Make sure we dont get a sg segment crosses a page boundary */ |
1712 | .dma_boundary = PAGE_SIZE-1, | 1709 | .dma_boundary = PAGE_SIZE-1, |
1710 | /* Ensure there are no gaps in presented sgls */ | ||
1711 | .virt_boundary_mask = PAGE_SIZE-1, | ||
1713 | .no_write_same = 1, | 1712 | .no_write_same = 1, |
1714 | .track_queue_depth = 1, | 1713 | .track_queue_depth = 1, |
1715 | .change_queue_depth = storvsc_change_queue_depth, | 1714 | .change_queue_depth = storvsc_change_queue_depth, |