From: Tejun Heo Date: Mon, 19 Nov 2012 16:13:37 +0000 (-0800) Subject: cgroup: introduce CSS_ONLINE flag and on/offline_css() helpers X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~57^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a31f2d3ff7fe20cbe2a143515a7d7c408b29dd0d;p=pandora-kernel.git 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 Acked-by: Li Zefan --- Reading git-diff-tree failed