diff options
author | John Garry <[email protected]> | 2022-07-14 19:15:29 +0800 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2022-07-19 11:11:49 +0200 |
commit | 0568e6122574dcc1aded2979cd0245038efe22b6 (patch) | |
tree | 22e9e584d86563236ef6f0a3efa999fa6834e7c4 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 4cbfca5f7750520ff993a0d6eb79cc4a6f6cee97 (diff) |
ata: libata-scsi: cap ata_device->max_sectors according to shost->max_sectors
ATA devices (struct ata_device) have a max_sectors field which is
configured internally in libata. This is then used to (re)configure the
associated sdev request queue max_sectors value from how it is earlier set
in __scsi_init_queue(). In __scsi_init_queue() the max_sectors value is set
according to shost limits, which includes host DMA mapping limits.
Cap the ata_device max_sectors according to shost->max_sectors to respect
this shost limit.
Signed-off-by: John Garry <[email protected]>
Acked-by: Damien Le Moal <[email protected]>
Acked-by: Martin K. Petersen <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions