diff options
author | Tejun Heo <tj@kernel.org> | 2012-11-09 17:12:30 (GMT) |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-11-09 17:12:30 (GMT) |
commit | 5300a9b3482b6d9c32de6d5f4eaeab0fbafa70a8 (patch) | |
tree | 775b078ce6af375ef2110e71a0f873f645d14671 /Documentation/fb/sisfb.txt | |
parent | a225218060fc8f10ed396c9c8187074697ad044d (diff) | |
download | linux-5300a9b3482b6d9c32de6d5f4eaeab0fbafa70a8.tar.xz |
cgroup_freezer: add ->post_create() and ->pre_destroy() and track online state
A cgroup is online and visible to iteration between ->post_create()
and ->pre_destroy(). This patch introduces CGROUP_FREEZER_ONLINE and
toggles it from the newly added freezer_post_create() and
freezer_pre_destroy() while holding freezer->lock such that a
cgroup_freezer can be reilably distinguished to be online. This will
be used by full hierarchy support.
ONLINE test is added to freezer_apply_state() but it currently doesn't
make any difference as freezer_write() can only be called for an
online cgroup.
Adjusting system_freezing_cnt on destruction is moved from
freezer_destroy() to the new freezer_pre_destroy() for consistency.
This patch doesn't introduce any noticeable behavior change.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Diffstat (limited to 'Documentation/fb/sisfb.txt')
0 files changed, 0 insertions, 0 deletions