blk-mq: defer to the normal submission path for non-flush flush commands
authorChristoph Hellwig <hch@lst.de>
Fri, 19 May 2023 04:40:46 +0000 (06:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 May 2023 01:52:29 +0000 (19:52 -0600)
commit360f264834e34d08530c2fb9b67e3ffa65318761
treecc9a3f142802d97d9598aa8b531d7ed07f682311
parentc1075e548ce6e6b5c7b71f2b05d344164ebc52bb
blk-mq: defer to the normal submission path for non-flush flush commands

If blk_insert_flush decides that a command does not need to use the
flush state machine, return false and let blk_mq_submit_bio handle
it the normal way (including using an I/O scheduler) instead of doing
a bypass insert.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230519044050.107790-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-flush.c
block/blk-mq.c
block/blk-mq.h
block/blk.h