aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2022-07-14 19:15:26 +0800
committerChristoph Hellwig <hch@lst.de>2022-07-19 06:05:47 +0200
commitbb7d1283e6280acdfe0faf10e8b6ebd1f5970fed (patch)
treea88892c614aae0e977799e418242fdbb56e67843 /drivers/scsi/sd.c
parentdma-iommu: add iommu_dma_opt_mapping_size() (diff)
downloadlinux-dev-bb7d1283e6280acdfe0faf10e8b6ebd1f5970fed.tar.xz
linux-dev-bb7d1283e6280acdfe0faf10e8b6ebd1f5970fed.zip
scsi: core: cap shost max_sectors according to DMA limits only once
The shost->max_sectors is repeatedly capped according to the host DMA mapping limit for each sdev in __scsi_init_queue(). This is unnecessary, so set only once when adding the host. Signed-off-by: John Garry <john.garry@huawei.com> Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Acked-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/sd.c')
0 files changed, 0 insertions, 0 deletions