John Garry 4cbfca5f77 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: John Garry <john.garry@huawei.com>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2022-07-19 11:11:49 +02:00
..
2022-04-11 22:09:35 -04:00
2022-04-11 22:09:35 -04:00
2022-05-23 23:24:09 -04:00
2022-05-25 19:09:48 -07:00
2021-11-05 08:42:02 -07:00
2022-05-23 23:24:10 -04:00
2022-06-01 22:43:26 -04:00
2022-05-23 23:24:10 -04:00
2022-06-05 09:25:12 -07:00
2022-02-22 21:11:02 -05:00
2022-01-14 14:37:34 +01:00
2022-02-22 21:11:02 -05:00
2022-01-25 00:09:41 -05:00
2022-02-22 21:11:02 -05:00
2022-01-22 08:33:37 +02:00
2022-05-02 16:59:11 -04:00
2022-05-08 14:28:18 -04:00
2021-12-22 23:41:13 -05:00
2022-06-05 09:25:12 -07:00