diff options
author | Tejun Heo <tj@kernel.org> | 2012-04-01 15:30:01 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-04-01 15:55:00 -0400 |
commit | 959d851caa48829eb85cb85aa949fd6b4c5d5bc6 (patch) | |
tree | 3ba9c94ec346275fb44c4f0d1cd2537cdff8d811 /include/linux/bio.h | |
parent | a5567932fc926739e29e98487128080f40c61710 (diff) | |
parent | 48ddbe194623ae089cc0576e60363f2d2e85662a (diff) |
Merge branch 'for-3.5' of ../cgroup into block/for-3.5/core-merged
cgroup/for-3.5 contains the following changes which blk-cgroup needs
to proceed with the on-going cleanup.
* Dynamic addition and removal of cftypes to make config/stat file
handling modular for policies.
* cgroup removal update to not wait for css references to drain to fix
blkcg removal hang caused by cfq caching cfqgs.
Pull in cgroup/for-3.5 into block/for-3.5/core. This causes the
following conflicts in block/blk-cgroup.c.
* 761b3ef50e "cgroup: remove cgroup_subsys argument from callbacks"
conflicts with blkiocg_pre_destroy() addition and blkiocg_attach()
removal. Resolved by removing @subsys from all subsys methods.
* 676f7c8f84 "cgroup: relocate cftype and cgroup_subsys definitions in
controllers" conflicts with ->pre_destroy() and ->attach() updates
and removal of modular config. Resolved by dropping forward
declarations of the methods and applying updates to the relocated
blkio_subsys.
* 4baf6e3325 "cgroup: convert all non-memcg controllers to the new
cftype interface" builds upon the previous item. Resolved by adding
->base_cftypes to the relocated blkio_subsys.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 692d3d5b49f5..26435890dc87 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/highmem.h> | 23 | #include <linux/highmem.h> |
24 | #include <linux/mempool.h> | 24 | #include <linux/mempool.h> |
25 | #include <linux/ioprio.h> | 25 | #include <linux/ioprio.h> |
26 | #include <linux/bug.h> | ||
26 | 27 | ||
27 | #ifdef CONFIG_BLOCK | 28 | #ifdef CONFIG_BLOCK |
28 | 29 | ||
@@ -101,10 +102,10 @@ static inline int bio_has_allocated_vec(struct bio *bio) | |||
101 | * I/O completely on that queue (see ide-dma for example) | 102 | * I/O completely on that queue (see ide-dma for example) |
102 | */ | 103 | */ |
103 | #define __bio_kmap_atomic(bio, idx, kmtype) \ | 104 | #define __bio_kmap_atomic(bio, idx, kmtype) \ |
104 | (kmap_atomic(bio_iovec_idx((bio), (idx))->bv_page, kmtype) + \ | 105 | (kmap_atomic(bio_iovec_idx((bio), (idx))->bv_page) + \ |
105 | bio_iovec_idx((bio), (idx))->bv_offset) | 106 | bio_iovec_idx((bio), (idx))->bv_offset) |
106 | 107 | ||
107 | #define __bio_kunmap_atomic(addr, kmtype) kunmap_atomic(addr, kmtype) | 108 | #define __bio_kunmap_atomic(addr, kmtype) kunmap_atomic(addr) |
108 | 109 | ||
109 | /* | 110 | /* |
110 | * merge helpers etc | 111 | * merge helpers etc |
@@ -325,7 +326,7 @@ static inline char *bvec_kmap_irq(struct bio_vec *bvec, unsigned long *flags) | |||
325 | * balancing is a lot nicer this way | 326 | * balancing is a lot nicer this way |
326 | */ | 327 | */ |
327 | local_irq_save(*flags); | 328 | local_irq_save(*flags); |
328 | addr = (unsigned long) kmap_atomic(bvec->bv_page, KM_BIO_SRC_IRQ); | 329 | addr = (unsigned long) kmap_atomic(bvec->bv_page); |
329 | 330 | ||
330 | BUG_ON(addr & ~PAGE_MASK); | 331 | BUG_ON(addr & ~PAGE_MASK); |
331 | 332 | ||
@@ -336,7 +337,7 @@ static inline void bvec_kunmap_irq(char *buffer, unsigned long *flags) | |||
336 | { | 337 | { |
337 | unsigned long ptr = (unsigned long) buffer & PAGE_MASK; | 338 | unsigned long ptr = (unsigned long) buffer & PAGE_MASK; |
338 | 339 | ||
339 | kunmap_atomic((void *) ptr, KM_BIO_SRC_IRQ); | 340 | kunmap_atomic((void *) ptr); |
340 | local_irq_restore(*flags); | 341 | local_irq_restore(*flags); |
341 | } | 342 | } |
342 | 343 | ||