]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: don't issue request directly in case that current is to be blocked
authorMing Lei <ming.lei@redhat.com>
Tue, 26 Oct 2021 08:22:57 +0000 (16:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Oct 2021 14:38:11 +0000 (08:38 -0600)
commit65cad39edbe91e51c700583f7436802619bcd200
tree471881aa06bfa9a9fe5efb9f061b8de642ebc852
parent8168e9e857c9cfb7f3c8722d16154bd0535e87c7
blk-mq: don't issue request directly in case that current is to be blocked

When flushing plug list in case that current will be blocked, we can't
issue request directly because ->queue_rq() may sleep, otherwise scheduler
may complain.

Fixes: 4b563c78d628 ("block: attempt direct issue of plug list")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20211026082257.2889890-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c