summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-rq.c
diff options
context:
space:
mode:
authorTahsin Erdogan <tahsin@google.com>2016-07-15 06:27:08 -0700
committerMike Snitzer <snitzer@redhat.com>2016-07-18 15:37:34 -0400
commitbd9f55ea1cf6e14eb054b06ea877d2d1fa339514 (patch)
tree48a109b992a6d5664c40ea2c7959c10060b5342c /drivers/md/dm-rq.c
parentd7ccc2e2a0e5a4cdd024f4a1349a033f7cd3aa7d (diff)
downloadlinux-stable-bd9f55ea1cf6e14eb054b06ea877d2d1fa339514.tar.gz
linux-stable-bd9f55ea1cf6e14eb054b06ea877d2d1fa339514.tar.bz2
linux-stable-bd9f55ea1cf6e14eb054b06ea877d2d1fa339514.zip
dm: fix second blk_delay_queue() parameter to be in msec units not jiffies
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@google.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Fixes: d548b34b062 ("dm: reduce the queue delay used in dm_request_fn from 100ms to 10ms") Cc: stable@vger.kernel.org # 4.1+ -- stable@ backports must be applied to drivers/md/dm.c
Diffstat (limited to 'drivers/md/dm-rq.c')
-rw-r--r--drivers/md/dm-rq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c
index aa81539374a6..7a9661868496 100644
--- a/drivers/md/dm-rq.c
+++ b/drivers/md/dm-rq.c
@@ -785,7 +785,7 @@ static void dm_old_request_fn(struct request_queue *q)
md_in_flight(md) && rq->bio && rq->bio->bi_vcnt == 1 &&
md->last_rq_pos == pos && md->last_rq_rw == rq_data_dir(rq)) ||
(ti->type->busy && ti->type->busy(ti))) {
- blk_delay_queue(q, HZ / 100);
+ blk_delay_queue(q, 10);
return;
}