diff options
author | Ming Lei <ming.lei@redhat.com> | 2023-05-18 07:30:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-07-19 16:35:07 +0200 |
commit | f2c4eff13173e32d97666239a8551bce74791503 (patch) | |
tree | a5727963454f5997c16a13240207048ac4558ad0 /include | |
parent | 79769887fd0449a201c92dda99019a23c40055d8 (diff) | |
download | linux-stable-f2c4eff13173e32d97666239a8551bce74791503.tar.gz linux-stable-f2c4eff13173e32d97666239a8551bce74791503.tar.bz2 linux-stable-f2c4eff13173e32d97666239a8551bce74791503.zip |
blk-mq: don't queue plugged passthrough requests into scheduler
[ Upstream commit d97217e7f024bbe9aa62aea070771234c2879358 ]
Passthrough requests should never be queued to the I/O scheduler,
as scheduling these opaque requests doesn't make sense, and I/O
schedulers might require req->bio to be always valid.
We never let passthrough requests insert into the scheduler before
commit 1c2d2fff6dc0 ("block: wire-up support for passthrough plugging"),
restore this behavior even for passthrough requests issued under a plug.
[hch: use blk_mq_insert_requests for passthrough requests,
fix up the commit message and comments]
Reported-by: Guangwu Zhang <guazhang@redhat.com>
Closes: https://lore.kernel.org/linux-block/CAGS2=YosaYaUTEMU3uaf+y=8MqSrhL7sYsJn8EwbaM=76p_4Qg@mail.gmail.com/
Investigated-by: Yu Kuai <yukuai1@huaweicloud.com>
Fixes: 1c2d2fff6dc0 ("block: wire-up support for passthrough plugging")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230518053101.760632-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions