Skip to content
Commit 4cbfca5f authored by John Garry's avatar John Garry Committed by Christoph Hellwig
Browse files

scsi: scsi_transport_sas: cap shost opt_sectors according to DMA optimal limit



Streaming DMA mappings may be considerably slower when mappings go through
an IOMMU and the total mapping length is somewhat long. This is because the
IOMMU IOVA code allocates and free an IOVA for each mapping, which may
affect performance.

For performance reasons set the request queue max_sectors from
dma_opt_mapping_size(), which knows this mapping limit.

Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
Reviewed-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 608128d3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment