Skip to content

Commit 8b95741

Browse files
committed
blk-mq: use blk_mq_start_hw_queues() when running requeue work
When requests are retried due to hw or sw resource shortages, we often stop the associated hardware queue. So ensure that we restart the queues when running the requeue work, otherwise the queue run will be a no-op. Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent 6b55e1f commit 8b95741

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎block/blk-mq.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,11 @@ static void blk_mq_requeue_work(struct work_struct *work)
479479
blk_mq_insert_request(rq, false, false, false);
480480
}
481481

482-
blk_mq_run_queues(q, false);
482+
/*
483+
* Use the start variant of queue running here, so that running
484+
* the requeue work will kick stopped queues.
485+
*/
486+
blk_mq_start_hw_queues(q);
483487
}
484488

485489
void blk_mq_add_to_requeue_list(struct request *rq, bool at_head)

0 commit comments

Comments
 (0)