Skip to content

Commit

Permalink
dm: fix second blk_delay_queue() parameter to be in msec units not ji…
Browse files Browse the repository at this point in the history
…ffies

Commit d548b34 ("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 7eaceac ("block:
remove per-queue plugging") did.

Signed-off-by: Tahsin Erdogan <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Fixes: d548b34 ("dm: reduce the queue delay used in dm_request_fn from 100ms to 10ms")
Cc: [email protected] # 4.1+ -- stable@ backports must be applied to drivers/md/dm.c
  • Loading branch information
Tahsin Erdogan authored and snitm committed Jul 18, 2016
1 parent d7ccc2e commit bd9f55e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-rq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bd9f55e

Please sign in to comment.