[PATCH 4.4 246/312] dm: fix second blk_delay_queue() parameter to be in msec units not jiffies

From: Greg Kroah-Hartman
Date: Fri May 08 2020 - 08:46:28 EST


From: Tahsin Erdogan <tahsin@xxxxxxxxxx>

commit bd9f55ea1cf6e14eb054b06ea877d2d1fa339514 upstream.

Commit d548b34b062 ("dm: reduce the queue delay used in dm_request_fn
from 100ms to 10ms") always intended the value to be 10 msecs -- it
just expressed it in jiffies because earlier commit 7eaceaccab ("block:
remove per-queue plugging") did.

Signed-off-by: Tahsin Erdogan <tahsin@xxxxxxxxxx>
Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxxx>
Fixes: d548b34b062 ("dm: reduce the queue delay used in dm_request_fn from 100ms to 10ms")
Cc: stable@xxxxxxxxxxxxxxx # 4.1+ -- stable@ backports must be applied to drivers/md/dm.c
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
drivers/md/dm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -2192,7 +2192,7 @@ static void dm_request_fn(struct request
goto out;

delay_and_out:
- blk_delay_queue(q, HZ / 100);
+ blk_delay_queue(q, 10);
out:
dm_put_live_table(md, srcu_idx);
}