author | Tejun Heo <tj@kernel.org> | |
Fri, 9 Nov 2012 17:12:30 +0000 (09:12 -0800) | ||
committer | Tejun Heo <tj@kernel.org> | |
Fri, 9 Nov 2012 17:12:30 +0000 (09:12 -0800) | ||
commit | a225218060fc8f10ed396c9c8187074697ad044d | |
tree | d514f4c696ba846a1f63a3e93cc2c7eb093c2312 | tree | snapshot (tar.xz tar.gz zip) |
parent | d6a2fe134219adf94e6bd0c8f6e2a3163ff68c41 | commit | diff |
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>
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 | diff | blob | history |