aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-settings.c')
-rw-r--r--block/blk-settings.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c
index 7f986cafacd5..1ebc1fdb9144 100644
--- a/block/blk-settings.c
+++ b/block/blk-settings.c
@@ -8,6 +8,7 @@
8#include <linux/blkdev.h> 8#include <linux/blkdev.h>
9#include <linux/bootmem.h> /* for max_pfn/max_low_pfn */ 9#include <linux/bootmem.h> /* for max_pfn/max_low_pfn */
10#include <linux/gcd.h> 10#include <linux/gcd.h>
11#include <linux/jiffies.h>
11 12
12#include "blk.h" 13#include "blk.h"
13 14
@@ -144,7 +145,7 @@ void blk_queue_make_request(struct request_queue *q, make_request_fn *mfn)
144 q->nr_batching = BLK_BATCH_REQ; 145 q->nr_batching = BLK_BATCH_REQ;
145 146
146 q->unplug_thresh = 4; /* hmm */ 147 q->unplug_thresh = 4; /* hmm */
147 q->unplug_delay = (3 * HZ) / 1000; /* 3 milliseconds */ 148 q->unplug_delay = msecs_to_jiffies(3); /* 3 milliseconds */
148 if (q->unplug_delay == 0) 149 if (q->unplug_delay == 0)
149 q->unplug_delay = 1; 150 q->unplug_delay = 1;
150 151