]> www.infradead.org Git - users/hch/block.git/commit
blk-mq: make sure elevator callbacks aren't called for passthrough request blk-pt-sched
authorChristoph Hellwig <hch@lst.de>
Thu, 18 May 2023 04:38:09 +0000 (06:38 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 18 May 2023 05:30:34 +0000 (07:30 +0200)
commitcc603325b76d3d3811f1003405bc5d2109d40887
treeb23ba2c23b3d580ec59c2ffa9b253852073d07d1
parent5e8386f4cfd22df65168cfa3f76f7079b99cf6b4
blk-mq: make sure elevator callbacks aren't called for passthrough request

In case of q->elevator, passthrought request can still be marked as
RQF_ELV, so some elevator callbacks will be called for them.

Fix this by splitting RQF_SCHED_TAGS, which is set for all requests that
are issued on a queue that uses an I/O scheduler, and RQF_USE_SCHED for
non-flush, non-passthrough requests on such a queue.

Roughly based on two different patches from
Ming Lei <ming.lei@redhat.com>.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-mq-debugfs.c
block/blk-mq-sched.h
block/blk-mq.c
block/blk-mq.h
include/linux/blk-mq.h