diff options
author | Hongyu Jin <[email protected]> | 2024-01-30 15:26:34 -0500 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-02-01 11:00:06 -0700 |
commit | f3c89983cb4fc00be64eb0d5cbcfcdf2cacb965e (patch) | |
tree | 8d3bcaf780005f6f835d9fec2282c31c9f6af28a /scripts/gdb/linux/utils.py | |
parent | 373581643d3d6f34f16389b481b1462c8cbd37c7 (diff) |
block: Fix where bio IO priority gets set
Commit 82b74cac2849 ("blk-ioprio: Convert from rqos policy to direct
call") pushed setting bio I/O priority down into blk_mq_submit_bio()
-- which is too low within block core's submit_bio() because it
skips setting I/O priority for block drivers that implement
fops->submit_bio() (e.g. DM, MD, etc).
Fix this by moving bio_set_ioprio() up from blk-mq.c to blk-core.c and
call it from submit_bio(). This ensures all block drivers call
bio_set_ioprio() during initial bio submission.
Fixes: a78418e6a04c ("block: Always initialize bio IO priority on submit")
Co-developed-by: Yibin Ding <[email protected]>
Signed-off-by: Yibin Ding <[email protected]>
Signed-off-by: Hongyu Jin <[email protected]>
Reviewed-by: Eric Biggers <[email protected]>
Reviewed-by: Mikulas Patocka <[email protected]>
[snitzer: revised commit header]
Signed-off-by: Mike Snitzer <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions