blk-mq: don't run the hw_queue from blk_mq_insert_request
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Apr 2023 06:40:51 +0000 (08:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Apr 2023 12:52:30 +0000 (06:52 -0600)
commitf0dbe6e88e1bf4003ef778527b975ff60dbdd35a
tree58b8da18c84504ca6dc47fb87c773b8823d7a850
parente1f44ac0d7f48ec44a1eacfe637e545c408ede40
blk-mq: don't run the hw_queue from blk_mq_insert_request

blk_mq_insert_request takes two bool parameters to control how to run
the queue at the end of the function.  Move the blk_mq_run_hw_queue call
to the callers that want it instead.

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/20230413064057.707578-15-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c