diff options
author | Konstantin Khlebnikov <[email protected]> | 2020-02-28 17:51:48 +0300 |
---|---|---|
committer | Song Liu <[email protected]> | 2020-03-17 10:53:07 -0700 |
commit | e74d93e96d721c4297f2a900ad0191890d2fc2b0 (patch) | |
tree | 51449cebc1f1a08d85f350bb1bc053a62efc6bd3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 6b40bec3b13278d21fa6c1ae7a0bdf2e550eed5f (diff) |
block: keep bdi->io_pages in sync with max_sectors_kb for stacked devices
Field bdi->io_pages added in commit 9491ae4aade6 ("mm: don't cap request
size based on read-ahead setting") removes unneeded split of read requests.
Stacked drivers do not call blk_queue_max_hw_sectors(). Instead they set
limits of their devices by blk_set_stacking_limits() + disk_stack_limits().
Field bio->io_pages stays zero until user set max_sectors_kb via sysfs.
This patch updates io_pages after merging limits in disk_stack_limits().
Commit c6d6e9b0f6b4 ("dm: do not allow readahead to limit IO size") fixed
the same problem for device-mapper devices, this one fixes MD RAIDs.
Fixes: 9491ae4aade6 ("mm: don't cap request size based on read-ahead setting")
Reviewed-by: Paul Menzel <[email protected]>
Reviewed-by: Bob Liu <[email protected]>
Signed-off-by: Konstantin Khlebnikov <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions