diff options
author | Christoph Hellwig <[email protected]> | 2020-09-24 08:51:34 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-09-24 13:43:39 -0600 |
commit | c2e4cd57cfa1f627b786c764d185fff85fd12be9 (patch) | |
tree | 7b562f0ea09b6bf6dc45c14a7938ead0daab2aee /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 16ef510139315a2147ee7525796f8dbd4e4b7864 (diff) |
block: lift setting the readahead size into the block layer
Drivers shouldn't really mess with the readahead size, as that is a VM
concept. Instead set it based on the optimal I/O size by lifting the
algorithm from the md driver when registering the disk. Also set
bdi->io_pages there as well by applying the same scheme based on
max_sectors. To ensure the limits work well for stacking drivers a
new helper is added to update the readahead limits from the block
limits, which is also called from disk_stack_limits.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Mike Snitzer <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Acked-by: Coly Li <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions