diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2010-04-13 14:03:21 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-04-13 14:03:21 -0400 |
commit | 4facdaec1ce186e731e6baa04f074804849e9a49 (patch) | |
tree | e521fba8386bf23533cfe21ea5200e615960ec07 /block | |
parent | a11cdaa7af56423a921a8bdad8f5a5f4ddca918a (diff) | |
parent | 0d0fb0f9c5fddef4a10242fe3337f00f528a3099 (diff) |
Merge branch 'master' into for-2.6.35
Conflicts:
block/blk-cgroup.c
block/cfq-iosched.c
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-barrier.c | 1 | ||||
-rw-r--r-- | block/blk-cgroup.c | 1 | ||||
-rw-r--r-- | block/blk-integrity.c | 1 | ||||
-rw-r--r-- | block/blk-ioc.c | 1 | ||||
-rw-r--r-- | block/blk-settings.c | 1 | ||||
-rw-r--r-- | block/blk-sysfs.c | 1 | ||||
-rw-r--r-- | block/blk-tag.c | 1 | ||||
-rw-r--r-- | block/bsg.c | 1 | ||||
-rw-r--r-- | block/cfq-iosched.c | 13 | ||||
-rw-r--r-- | block/compat_ioctl.c | 1 | ||||
-rw-r--r-- | block/ioctl.c | 1 | ||||
-rw-r--r-- | block/noop-iosched.c | 1 |
12 files changed, 22 insertions, 2 deletions
diff --git a/block/blk-barrier.c b/block/blk-barrier.c index 8618d8996fea..6d88544b677f 100644 --- a/block/blk-barrier.c +++ b/block/blk-barrier.c | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <linux/module.h> | 5 | #include <linux/module.h> |
6 | #include <linux/bio.h> | 6 | #include <linux/bio.h> |
7 | #include <linux/blkdev.h> | 7 | #include <linux/blkdev.h> |
8 | #include <linux/gfp.h> | ||
8 | 9 | ||
9 | #include "blk.h" | 10 | #include "blk.h" |
10 | 11 | ||
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 25cc7514d817..aa97cd455cef 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
17 | #include <linux/err.h> | 17 | #include <linux/err.h> |
18 | #include <linux/blkdev.h> | 18 | #include <linux/blkdev.h> |
19 | #include <linux/slab.h> | ||
19 | #include "blk-cgroup.h" | 20 | #include "blk-cgroup.h" |
20 | #include <linux/genhd.h> | 21 | #include <linux/genhd.h> |
21 | 22 | ||
diff --git a/block/blk-integrity.c b/block/blk-integrity.c index 96e83c2bdb94..edce1ef7933d 100644 --- a/block/blk-integrity.c +++ b/block/blk-integrity.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/mempool.h> | 24 | #include <linux/mempool.h> |
25 | #include <linux/bio.h> | 25 | #include <linux/bio.h> |
26 | #include <linux/scatterlist.h> | 26 | #include <linux/scatterlist.h> |
27 | #include <linux/slab.h> | ||
27 | 28 | ||
28 | #include "blk.h" | 29 | #include "blk.h" |
29 | 30 | ||
diff --git a/block/blk-ioc.c b/block/blk-ioc.c index 3f65c8aadb2f..d22c4c55c406 100644 --- a/block/blk-ioc.c +++ b/block/blk-ioc.c | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <linux/bio.h> | 7 | #include <linux/bio.h> |
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/slab.h> | ||
10 | 11 | ||
11 | #include "blk.h" | 12 | #include "blk.h" |
12 | 13 | ||
diff --git a/block/blk-settings.c b/block/blk-settings.c index 4c4700dca56a..f5ed5a1187ba 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/gcd.h> | 10 | #include <linux/gcd.h> |
11 | #include <linux/lcm.h> | 11 | #include <linux/lcm.h> |
12 | #include <linux/jiffies.h> | 12 | #include <linux/jiffies.h> |
13 | #include <linux/gfp.h> | ||
13 | 14 | ||
14 | #include "blk.h" | 15 | #include "blk.h" |
15 | 16 | ||
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 4426739fb757..306759bbdf1b 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c | |||
@@ -2,6 +2,7 @@ | |||
2 | * Functions related to sysfs handling | 2 | * Functions related to sysfs handling |
3 | */ | 3 | */ |
4 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
5 | #include <linux/slab.h> | ||
5 | #include <linux/module.h> | 6 | #include <linux/module.h> |
6 | #include <linux/bio.h> | 7 | #include <linux/bio.h> |
7 | #include <linux/blkdev.h> | 8 | #include <linux/blkdev.h> |
diff --git a/block/blk-tag.c b/block/blk-tag.c index 6b0f52c20964..ece65fc4c79b 100644 --- a/block/blk-tag.c +++ b/block/blk-tag.c | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <linux/module.h> | 5 | #include <linux/module.h> |
6 | #include <linux/bio.h> | 6 | #include <linux/bio.h> |
7 | #include <linux/blkdev.h> | 7 | #include <linux/blkdev.h> |
8 | #include <linux/slab.h> | ||
8 | 9 | ||
9 | #include "blk.h" | 10 | #include "blk.h" |
10 | 11 | ||
diff --git a/block/bsg.c b/block/bsg.c index 46597a6bd112..82d58829ba59 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/idr.h> | 21 | #include <linux/idr.h> |
22 | #include <linux/bsg.h> | 22 | #include <linux/bsg.h> |
23 | #include <linux/smp_lock.h> | 23 | #include <linux/smp_lock.h> |
24 | #include <linux/slab.h> | ||
24 | 25 | ||
25 | #include <scsi/scsi.h> | 26 | #include <scsi/scsi.h> |
26 | #include <scsi/scsi_ioctl.h> | 27 | #include <scsi/scsi_ioctl.h> |
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 42be3b68d356..9e0df2bdcf21 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * Copyright (C) 2003 Jens Axboe <axboe@kernel.dk> | 7 | * Copyright (C) 2003 Jens Axboe <axboe@kernel.dk> |
8 | */ | 8 | */ |
9 | #include <linux/module.h> | 9 | #include <linux/module.h> |
10 | #include <linux/slab.h> | ||
10 | #include <linux/blkdev.h> | 11 | #include <linux/blkdev.h> |
11 | #include <linux/elevator.h> | 12 | #include <linux/elevator.h> |
12 | #include <linux/jiffies.h> | 13 | #include <linux/jiffies.h> |
@@ -945,6 +946,11 @@ cfq_find_alloc_cfqg(struct cfq_data *cfqd, struct cgroup *cgroup, int create) | |||
945 | unsigned int major, minor; | 946 | unsigned int major, minor; |
946 | 947 | ||
947 | cfqg = cfqg_of_blkg(blkiocg_lookup_group(blkcg, key)); | 948 | cfqg = cfqg_of_blkg(blkiocg_lookup_group(blkcg, key)); |
949 | if (cfqg && !cfqg->blkg.dev && bdi->dev && dev_name(bdi->dev)) { | ||
950 | sscanf(dev_name(bdi->dev), "%u:%u", &major, &minor); | ||
951 | cfqg->blkg.dev = MKDEV(major, minor); | ||
952 | goto done; | ||
953 | } | ||
948 | if (cfqg || !create) | 954 | if (cfqg || !create) |
949 | goto done; | 955 | goto done; |
950 | 956 | ||
@@ -2224,10 +2230,13 @@ static int cfq_forced_dispatch(struct cfq_data *cfqd) | |||
2224 | struct cfq_queue *cfqq; | 2230 | struct cfq_queue *cfqq; |
2225 | int dispatched = 0; | 2231 | int dispatched = 0; |
2226 | 2232 | ||
2227 | while ((cfqq = cfq_get_next_queue_forced(cfqd)) != NULL) | 2233 | /* Expire the timeslice of the current active queue first */ |
2234 | cfq_slice_expired(cfqd, 0); | ||
2235 | while ((cfqq = cfq_get_next_queue_forced(cfqd)) != NULL) { | ||
2236 | __cfq_set_active_queue(cfqd, cfqq); | ||
2228 | dispatched += __cfq_forced_dispatch_cfqq(cfqq); | 2237 | dispatched += __cfq_forced_dispatch_cfqq(cfqq); |
2238 | } | ||
2229 | 2239 | ||
2230 | cfq_slice_expired(cfqd, 0, true); | ||
2231 | BUG_ON(cfqd->busy_queues); | 2240 | BUG_ON(cfqd->busy_queues); |
2232 | 2241 | ||
2233 | cfq_log(cfqd, "forced_dispatch=%d", dispatched); | 2242 | cfq_log(cfqd, "forced_dispatch=%d", dispatched); |
diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c index 4eb8e9ea4af5..f26051f44681 100644 --- a/block/compat_ioctl.c +++ b/block/compat_ioctl.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <linux/elevator.h> | 6 | #include <linux/elevator.h> |
7 | #include <linux/fd.h> | 7 | #include <linux/fd.h> |
8 | #include <linux/hdreg.h> | 8 | #include <linux/hdreg.h> |
9 | #include <linux/slab.h> | ||
9 | #include <linux/syscalls.h> | 10 | #include <linux/syscalls.h> |
10 | #include <linux/smp_lock.h> | 11 | #include <linux/smp_lock.h> |
11 | #include <linux/types.h> | 12 | #include <linux/types.h> |
diff --git a/block/ioctl.c b/block/ioctl.c index be48ea51faee..8905d2a2a717 100644 --- a/block/ioctl.c +++ b/block/ioctl.c | |||
@@ -1,5 +1,6 @@ | |||
1 | #include <linux/capability.h> | 1 | #include <linux/capability.h> |
2 | #include <linux/blkdev.h> | 2 | #include <linux/blkdev.h> |
3 | #include <linux/gfp.h> | ||
3 | #include <linux/blkpg.h> | 4 | #include <linux/blkpg.h> |
4 | #include <linux/hdreg.h> | 5 | #include <linux/hdreg.h> |
5 | #include <linux/backing-dev.h> | 6 | #include <linux/backing-dev.h> |
diff --git a/block/noop-iosched.c b/block/noop-iosched.c index 3a0d369d08c7..232c4b38cd37 100644 --- a/block/noop-iosched.c +++ b/block/noop-iosched.c | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <linux/elevator.h> | 5 | #include <linux/elevator.h> |
6 | #include <linux/bio.h> | 6 | #include <linux/bio.h> |
7 | #include <linux/module.h> | 7 | #include <linux/module.h> |
8 | #include <linux/slab.h> | ||
8 | #include <linux/init.h> | 9 | #include <linux/init.h> |
9 | 10 | ||
10 | struct noop_data { | 11 | struct noop_data { |