blk-mq: remove __blk_mq_run_hw_queue
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Apr 2023 06:06:51 +0000 (08:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Apr 2023 12:58:02 +0000 (06:58 -0600)
commit4d5bba5bee0aa002523125e51789e95d47794a06
treea4340145067e23dd23eae67a9c4f70506bb1af59
parent1aa8d875b523d61347a6887e4a4ab65a6d799d40
blk-mq: remove __blk_mq_run_hw_queue

__blk_mq_run_hw_queue just contains a WARN_ON_ONCE for calls from
interrupt context and a blk_mq_run_dispatch_ops-protected call to
blk_mq_sched_dispatch_requests.  Open code the call to
blk_mq_sched_dispatch_requests in both callers, and move the WARN_ON_ONCE
to blk_mq_run_hw_queue where it can be extended to all !async calls,
while the other call is from workqueue context and thus obviously does
not need the assert.

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