Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1444320

[PATCH] dm: fix parameter to blk_delay_queue()

From Tahsin Erdogan <tahsin@google.com>
Newsgroups linux.kernel
Subject [PATCH] dm: fix parameter to blk_delay_queue()
Date 2016-07-15 15:30 +0200
Message-ID <rVblM-7q0-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Second parameter to blk_delay_queue() must be in msec units not jiffies.

Signed-off-by: Tahsin Erdogan <tahsin@google.com>
---
 drivers/md/dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 1b2f96205361..17c63265a205 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -2175,7 +2175,7 @@ static void dm_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;
 		}
 
-- 
2.8.0.rc3.226.g39d4020

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] dm: fix parameter to blk_delay_queue() Tahsin Erdogan <tahsin@google.com> - 2016-07-15 15:30 +0200
  Re: dm: fix parameter to blk_delay_queue() Mike Snitzer <snitzer@redhat.com> - 2016-07-15 16:00 +0200
    Re: dm: fix parameter to blk_delay_queue() Tahsin Erdogan <tahsin@google.com> - 2016-07-15 16:20 +0200

csiph-web