summaryrefslogtreecommitdiffstats
path: root/lib/show_mem.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-11-19 08:13:37 -0800
committerTejun Heo <tj@kernel.org>2012-11-19 08:13:37 -0800
commita31f2d3ff7fe20cbe2a143515a7d7c408b29dd0d (patch)
treefd9e909ad92609eb189d406c4812325788d25bbc /lib/show_mem.c
parent42809dd4225b2f3127a4804314a1b33608620d96 (diff)
downloadop-kernel-dev-a31f2d3ff7fe20cbe2a143515a7d7c408b29dd0d.zip
op-kernel-dev-a31f2d3ff7fe20cbe2a143515a7d7c408b29dd0d.tar.gz
cgroup: introduce CSS_ONLINE flag and on/offline_css() helpers
New helpers on/offline_css() respectively wrap ->post_create() and ->pre_destroy() invocations. online_css() sets CSS_ONLINE after ->post_create() is complete and offline_css() invokes ->pre_destroy() iff CSS_ONLINE is set and clears it while also handling the temporary dropping of cgroup_mutex. This patch doesn't introduce any behavior change at the moment but will be used to improve cgroup_create() failure path and allow ->post_create() to fail. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'lib/show_mem.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud