]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: Make blk_mq_delay_kick_requeue_list() rerun the queue at a quiet time
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 9 Aug 2017 18:28:06 +0000 (11:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2017 20:46:57 +0000 (13:46 -0700)
commit7926348676f575024cb7d7e302b6584331208f01
treefe871909bc95ad68c0f65ca984b1ec37b92450c4
parent67e1a98e3a74a5e728f311f59282a242ab34406d
block: Make blk_mq_delay_kick_requeue_list() rerun the queue at a quiet time

commit d4acf3650c7c968f46ad932b9a25d1cc24cf4998 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 2849450ad39d ("blk-mq: introduce blk_mq_delay_kick_requeue_list()")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Mike Snitzer <snitzer@redhat.com>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/blk-mq.c