blk-mq: move the !async handling out of __blk_mq_delay_run_hw_queue
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Apr 2023 06:06:50 +0000 (08:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Apr 2023 12:57:18 +0000 (06:57 -0600)
commit1aa8d875b523d61347a6887e4a4ab65a6d799d40
treec795c48168d7f9a5fb3b3db2d227a631e11687be
parentcd735e11130d4c84a073e1056aa019ca0f3305f9
blk-mq: move the !async handling out of __blk_mq_delay_run_hw_queue

Only blk_mq_run_hw_queue can call __blk_mq_delay_run_hw_queue with
async=false, so move the handling there.

With this __blk_mq_delay_run_hw_queue can be merged into
blk_mq_delay_run_hw_queue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230413060651.694656-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c