summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2026-09-22 10:27:11 -0700
committerJens Axboe <axboe@kernel.dk>2026-09-23 05:26:17 -0600
commit9d2c70986bb7838c1c441a93bda415eecb52f3dd (patch)
tree00dfb81892d12db8b663506a9631d191e05ca2e5 /tools/perf/scripts/python/task-analyzer.py
parentab6c756f28c741d704a7c3e04814bfc3adf6f818 (diff)
downloadlinux-next-9d2c70986bb7838c1c441a93bda415eecb52f3dd.tar.gz
linux-next-9d2c70986bb7838c1c441a93bda415eecb52f3dd.zip
blk-mq: allow cached requests to be used for flush operations
The cached request lookups reject a request whose op_is_flush() state does not match the incoming operation. That check is from when rq->elv and rq->flush shared a union, so a request could not be both a scheduler request and carry flush state. Commit be4c427809b0 ("blk-mq: use the I/O scheduler for writes from the flush state machine") made them separate members of struct request. A cached request now gets its scheduler state when it is claimed by an operation, so one claimed for a flush is set up exactly as a freshly allocated request. Drop the check so a cached batch can mix flush and non-flush operations. Signed-off-by: Keith Busch <kbusch@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20260922172711.1573186-2-kbusch@meta.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions