summaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2015-08-18 14:55:12 -0700
committerJens Axboe <axboe@fb.com>2015-08-18 15:49:16 -0700
commit4fb72036fbf9c28de7a64b1d3f19b4ce9da1c6bf (patch)
treeec418021883beb54038b9a2c3f9aaaf3c858c171 /block/blk-cgroup.c
parent001bea73e70efdf48a9e00188cf302f6b6aed2bf (diff)
downloadlinux-4fb72036fbf9c28de7a64b1d3f19b4ce9da1c6bf.tar.gz
linux-4fb72036fbf9c28de7a64b1d3f19b4ce9da1c6bf.tar.bz2
linux-4fb72036fbf9c28de7a64b1d3f19b4ce9da1c6bf.zip
blk-throttle: remove asynchrnous percpu stats allocation mechanism
Because percpu allocator couldn't do non-blocking allocations, blk-throttle was forced to implement an ad-hoc asynchronous allocation mechanism for its percpu stats for cases where blkg's (blkcg_gq's) are allocated from an IO path without sleepable context. Now that percpu allocator can handle gfp_mask and blkg_policy_data alloc / free are handled by policy methods, the ad-hoc asynchronous allocation mechanism can be replaced with direct allocation from tg_stats_alloc_fn(). Rit it out. This ensures that an active throtl_grp always has valid non-NULL ->stats_cpu. Remove checks on it. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-cgroup.c')
0 files changed, 0 insertions, 0 deletions