Skip to contentSkip to conversation

Patch "block: Make blk_mq_delay_kick_requeue_list() rerun the queue at a quiet time" has been added to the 4.12-stable tree

PATCH [email protected] 1 participant 1 message Aug 14, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

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

to the 4.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
block-make-blk_mq_delay_kick_requeue_list-rerun-the-queue-at-a-quiet-time.patch
and it can be found in the queue-4.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From d4acf3650c7c968f46ad932b9a25d1cc24cf4998 Mon Sep 17 00:00:00 2001

From: Bart Van Assche <[email protected]>
Date: Wed, 9 Aug 2017 11:28:06 -0700
Subject: block: Make blk_mq_delay_kick_requeue_list() rerun the queue at a quiet time

From: Bart Van Assche <[email protected]>

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()")
Cc Mike Snitzer <[email protected]>
Cc Laurence Oberman <[email protected]>
---
 block/blk-mq.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
block/blk-mq.c +2 -2
@@ -620,8 +620,8 @@ EXPORT_SYMBOL(blk_mq_kick_requeue_list);
 void blk_mq_delay_kick_requeue_list(struct request_queue *q,
 				    unsigned long msecs)
 {
-	kblockd_schedule_delayed_work(&q->requeue_work,
-				      msecs_to_jiffies(msecs));
+	kblockd_mod_delayed_work_on(WORK_CPU_UNBOUND, &q->requeue_work,
+				    msecs_to_jiffies(msecs));
 }
 EXPORT_SYMBOL(blk_mq_delay_kick_requeue_list);
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.12/block-make-blk_mq_delay_kick_requeue_list-rerun-the-queue-at-a-quiet-time.patch