Skip to content

Commit c20a1a2

Browse files
Christoph Hellwigaxboe
authored andcommitted
blk-mq: remove the blk_mq_hctx_stopped check in blk_mq_run_work_fn
blk_mq_hctx_stopped is already checked in blk_mq_sched_dispatch_requests under blk_mq_run_dispatch_ops() protection, so remove the duplicate check. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Link: https://lore.kernel.org/r/20230413060651.694656-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 89ea5ce commit c20a1a2

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

block/blk-mq.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,15 +2441,8 @@ EXPORT_SYMBOL(blk_mq_start_stopped_hw_queues);
24412441

24422442
static void blk_mq_run_work_fn(struct work_struct *work)
24432443
{
2444-
struct blk_mq_hw_ctx *hctx;
2445-
2446-
hctx = container_of(work, struct blk_mq_hw_ctx, run_work.work);
2447-
2448-
/*
2449-
* If we are stopped, don't run the queue.
2450-
*/
2451-
if (blk_mq_hctx_stopped(hctx))
2452-
return;
2444+
struct blk_mq_hw_ctx *hctx =
2445+
container_of(work, struct blk_mq_hw_ctx, run_work.work);
24532446

24542447
__blk_mq_run_hw_queue(hctx);
24552448
}

0 commit comments

Comments
 (0)