Commit 79263486 authored by Bart Van Assche's avatar Bart Van Assche Committed by Greg Kroah-Hartman

block: Make blk_mq_delay_kick_requeue_list() rerun the queue at a quiet time

commit d4acf365 upstream.

The blk_mq_delay_kick_requeue_list() function is used by the device
mapper and only by the device mapper to rerun the queue and requeue
list after a delay. This function is called once per request that
gets requeued. Modify this function such that the queue is run once
per path change event instead of once per request that is requeued.

Fixes: commit 2849450a ("blk-mq: introduce blk_mq_delay_kick_requeue_list()")
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Cc: Mike Snitzer <snitzer@redhat.com>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 67e1a98e
...@@ -620,8 +620,8 @@ EXPORT_SYMBOL(blk_mq_kick_requeue_list); ...@@ -620,8 +620,8 @@ EXPORT_SYMBOL(blk_mq_kick_requeue_list);
void blk_mq_delay_kick_requeue_list(struct request_queue *q, void blk_mq_delay_kick_requeue_list(struct request_queue *q,
unsigned long msecs) unsigned long msecs)
{ {
kblockd_schedule_delayed_work(&q->requeue_work, kblockd_mod_delayed_work_on(WORK_CPU_UNBOUND, &q->requeue_work,
msecs_to_jiffies(msecs)); msecs_to_jiffies(msecs));
} }
EXPORT_SYMBOL(blk_mq_delay_kick_requeue_list); EXPORT_SYMBOL(blk_mq_delay_kick_requeue_list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment