diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-settings.c | 3 | ||||
-rw-r--r-- | block/bsg.c | 3 | ||||
-rw-r--r-- | block/cfq-iosched.c | 1 |
3 files changed, 5 insertions, 2 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 | ||
diff --git a/block/bsg.c b/block/bsg.c index 0676301f16d0..a9fd2d84b53a 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/blkdev.h> | 15 | #include <linux/blkdev.h> |
16 | #include <linux/poll.h> | 16 | #include <linux/poll.h> |
17 | #include <linux/cdev.h> | 17 | #include <linux/cdev.h> |
18 | #include <linux/jiffies.h> | ||
18 | #include <linux/percpu.h> | 19 | #include <linux/percpu.h> |
19 | #include <linux/uio.h> | 20 | #include <linux/uio.h> |
20 | #include <linux/idr.h> | 21 | #include <linux/idr.h> |
@@ -197,7 +198,7 @@ static int blk_fill_sgv4_hdr_rq(struct request_queue *q, struct request *rq, | |||
197 | rq->cmd_len = hdr->request_len; | 198 | rq->cmd_len = hdr->request_len; |
198 | rq->cmd_type = REQ_TYPE_BLOCK_PC; | 199 | rq->cmd_type = REQ_TYPE_BLOCK_PC; |
199 | 200 | ||
200 | rq->timeout = (hdr->timeout * HZ) / 1000; | 201 | rq->timeout = msecs_to_jiffies(hdr->timeout); |
201 | if (!rq->timeout) | 202 | if (!rq->timeout) |
202 | rq->timeout = q->sg_timeout; | 203 | rq->timeout = q->sg_timeout; |
203 | if (!rq->timeout) | 204 | if (!rq->timeout) |
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 829d87d3e00f..1bcbd8c79896 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <linux/module.h> | 9 | #include <linux/module.h> |
10 | #include <linux/blkdev.h> | 10 | #include <linux/blkdev.h> |
11 | #include <linux/elevator.h> | 11 | #include <linux/elevator.h> |
12 | #include <linux/jiffies.h> | ||
12 | #include <linux/rbtree.h> | 13 | #include <linux/rbtree.h> |
13 | #include <linux/ioprio.h> | 14 | #include <linux/ioprio.h> |
14 | #include <linux/blktrace_api.h> | 15 | #include <linux/blktrace_api.h> |