aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mempool.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-06-04 20:40:52 -0700
committerJens Axboe <axboe@kernel.dk>2012-06-25 11:53:46 +0200
commit159749937a3e1605068a454b1607cdc5714f16e6 (patch)
tree28be38dcf91e5714c9e264da9c9502c5b642aa00 /include/linux/mempool.h
parentblkcg: __blkg_lookup_create() doesn't need radix preload (diff)
downloadlinux-dev-159749937a3e1605068a454b1607cdc5714f16e6.tar.xz
linux-dev-159749937a3e1605068a454b1607cdc5714f16e6.zip
blkcg: make root blkcg allocation use %GFP_KERNEL
Currently, blkcg_activate_policy() depends on %GFP_ATOMIC allocation from __blkg_lookup_create() for root blkcg creation. This could make policy fail unnecessarily. Make blkg_alloc() take @gfp_mask, __blkg_lookup_create() take an optional @new_blkg for preallocated blkg, and blkcg_activate_policy() preload radix tree and preallocate blkg with %GFP_KERNEL before trying to create the root blkg. v2: __blkg_lookup_create() was returning %NULL on blkg alloc failure instead of ERR_PTR() value. Fixed. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/mempool.h')
0 files changed, 0 insertions, 0 deletions