summaryrefslogtreecommitdiffstats
path: root/net/openvswitch
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 /net/openvswitch
parent13589864be74736ca4e6def7376742eb1d2099bf (diff)
downloadlinux-159749937a3e1605068a454b1607cdc5714f16e6.tar.gz
linux-159749937a3e1605068a454b1607cdc5714f16e6.tar.bz2
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 'net/openvswitch')
0 files changed, 0 insertions, 0 deletions