diff options
author | Tejun Heo <tj@kernel.org> | 2012-06-05 05:40:52 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-06-25 11:53:46 +0200 |
commit | 159749937a3e1605068a454b1607cdc5714f16e6 (patch) | |
tree | 28be38dcf91e5714c9e264da9c9502c5b642aa00 /COPYING | |
parent | blkcg: __blkg_lookup_create() doesn't need radix preload (diff) | |
download | linux-159749937a3e1605068a454b1607cdc5714f16e6.tar.xz linux-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 'COPYING')
0 files changed, 0 insertions, 0 deletions