diff options
author | Jens Axboe <axboe@kernel.dk> | 2025-02-13 18:18:46 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-02-13 18:20:18 +0300 |
commit | 1f47ed294a2bd577d5ae43e6e28e1c9a3be4a833 (patch) | |
tree | dc785c0079c6591b41f61d5c46b7428172bf0c80 /tools/perf/scripts/python/flamegraph.py | |
parent | 96b531f9bb0da924299d1850bb9b2911f5c0c50a (diff) | |
download | linux-1f47ed294a2bd577d5ae43e6e28e1c9a3be4a833.tar.xz |
block: cleanup and fix batch completion adding conditions
The conditions for whether or not a request is allowed adding to a
completion batch are a bit hard to read, and they also have a few
issues. One is that ioerror may indeed be a random value on passthrough,
and it's being checked unconditionally of whether or not the given
request is a passthrough request or not.
Rewrite the conditions to be separate for easier reading, and only check
ioerror for non-passthrough requests. This fixes an issue with bio
unmapping on passthrough, where it fails getting added to a batch. This
both leads to suboptimal performance, and may trigger a potential
schedule-under-atomic condition for polled passthrough IO.
Fixes: f794f3351f26 ("block: add support for blk_mq_end_request_batch()")
Link: https://lore.kernel.org/r/20575f0a-656e-4bb3-9d82-dec6c7e3a35c@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions