]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - kernel/cgroup_freezer.c
cgroup_freezer: introduce CGROUP_FREEZING_[SELF|PARENT]
authorTejun Heo <tj@kernel.org>
Fri, 9 Nov 2012 17:12:30 +0000 (09:12 -0800)
committerTejun Heo <tj@kernel.org>
Fri, 9 Nov 2012 17:12:30 +0000 (09:12 -0800)
commita225218060fc8f10ed396c9c8187074697ad044d
treed514f4c696ba846a1f63a3e93cc2c7eb093c2312
parentd6a2fe134219adf94e6bd0c8f6e2a3163ff68c41
cgroup_freezer: introduce CGROUP_FREEZING_[SELF|PARENT]

Introduce FREEZING_SELF and FREEZING_PARENT and make FREEZING OR of
the two flags.  This is to prepare for full hierarchy support.

freezer_apply_date() is updated such that it can handle setting and
clearing of both flags.  The two flags are also exposed to userland
via read-only files self_freezing and parent_freezing.

Other than the added cgroupfs files, this patch doesn't introduce any
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>
kernel/cgroup_freezer.c