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)
commita8cf59a6692c9c55a5a10257de97919fae6edef8
tree053ce64df252111bc86cf10f34c22ab042f082ca
parent9e8f1c79831424d30c0e3df068be7f4a244157c9
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: 50c2e9107f ("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