From: Jens Axboe Date: Fri, 19 Sep 2014 19:10:29 +0000 (-0600) Subject: blk-mq: use blk_mq_start_hw_queues() when running requeue work X-Git-Tag: v3.17-rc7~24^2~1 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=8b95741569eabc5eb17da71d1d3668cdb0bef86c;p=karo-tx-linux.git 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 --- diff --git a/block/blk-mq.c b/block/blk-mq.c index e83d306907da..c88e6089746d 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -479,7 +479,11 @@ static void blk_mq_requeue_work(struct work_struct *work) blk_mq_insert_request(rq, false, false, false); } - blk_mq_run_queues(q, false); + /* + * Use the start variant of queue running here, so that running + * the requeue work will kick stopped queues. + */ + blk_mq_start_hw_queues(q); } void blk_mq_add_to_requeue_list(struct request *rq, bool at_head)