Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christoph Hellwig and committed by
Martin K. Petersen
83eed459 552a990c

+2 -3
+2 -3
drivers/scsi/storvsc_drv.c
··· 1435 1435 { 1436 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 1438 sdevice->no_write_same = 1; 1442 1439 1443 1440 /* ··· 1707 1710 .this_id = -1, 1708 1711 /* Make sure we dont get a sg segment crosses a page boundary */ 1709 1712 .dma_boundary = PAGE_SIZE-1, 1713 + /* Ensure there are no gaps in presented sgls */ 1714 + .virt_boundary_mask = PAGE_SIZE-1, 1710 1715 .no_write_same = 1, 1711 1716 .track_queue_depth = 1, 1712 1717 .change_queue_depth = storvsc_change_queue_depth,