diff options
author | Ming Lei <[email protected]> | 2023-06-24 21:01:05 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-06-25 08:01:05 -0600 |
commit | c6b7a3a26e809c9d2a51ae303764c1d2994f31cf (patch) | |
tree | c921665f2b85359b6d17a68947868aa8d2a68fb1 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | ad7c3b41e86b59943a903d23c7b037d820e6270c (diff) |
blk-mq: fix two misuses on RQF_USE_SCHED
Request allocated from sched tags can't be issued via ->queue_rqs()
directly, since driver tag isn't allocated yet. This is the 1st misuse
of RQF_USE_SCHED for figuring out plug->has_elevator.
Request allocated from sched tags can't be ended by
blk_mq_end_request_batch() too, fix the 2nd RQF_USE_SCHED misuse
in blk_mq_add_to_batch().
Without this patch, NVMe uring cmd passthrough IO workload can run into
hang easily with real io scheduler.
Fixes: dd6216bb16e8 ("blk-mq: make sure elevator callbacks aren't called for passthrough request")
Reported-by: Guangwu Zhang <[email protected]>
Closes: https://lore.kernel.org/linux-block/CAGS2=YrBjpLPOKa-gzcKuuOG60AGth5794PNCDwatdnnscB9ug@mail.gmail.com/
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions