]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: communicate max segment size to the DMA mapping code
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Jan 2019 16:12:15 +0000 (17:12 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 23 Jan 2019 01:40:59 +0000 (20:40 -0500)
commitd8ebb4edae0b4c2274730a4d1218b46bdfa3aa52
tree053ce64df252111bc86cf10f34c22ab042f082ca
parenta24cab26a4d5f2dc961ea5c630e1f7981ddf8e2e
scsi: communicate max segment size to the DMA mapping code

When a host driver sets a maximum segment size we should not only propagate
that setting to the block layer, which can merge segments, but also to the
DMA mapping layer which can merge segments as well.

Fixes: 2efef403d2 ("scsi: introduce a max_segment_size host_template parameters")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ata/pata_macio.c
drivers/ata/sata_inic162x.c
drivers/firewire/sbp2.c
drivers/scsi/aacraid/linit.c
drivers/scsi/scsi_lib.c