diff options
author | Tejun Heo <tj@kernel.org> | 2014-02-13 06:58:38 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-02-13 06:58:38 -0500 |
commit | 35585573055f37837eb752ee22eb5523682ca742 (patch) | |
tree | 6cf006b6409e6256ca4d3a81eb5701cde931a324 /include/linux/cgroup.h | |
parent | d3ba07c3aa9ae3e03329b0a7f1a067c0647aa2af (diff) | |
download | linux-stable-35585573055f37837eb752ee22eb5523682ca742.tar.gz linux-stable-35585573055f37837eb752ee22eb5523682ca742.tar.bz2 linux-stable-35585573055f37837eb752ee22eb5523682ca742.zip |
cgroup: drop CGRP_ROOT_SUBSYS_BOUND
Before kernfs conversion, due to the way super_block lookup works,
cgroup roots were created and made visible before being fully
initialized. This in turn required a special flag to mark that the
root hasn't been fully initialized so that the destruction path can
tell fully bound ones from half initialized.
That flag is CGRP_ROOT_SUBSYS_BOUND and no longer necessary after the
kernfs conversion as the lookup and creation of new root are atomic
w.r.t. cgroup_mutex. This patch removes the flag and passes the
requests subsystem mask to cgroup_setup_root() so that it can set the
respective mask bits as subsystems are bound.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 5f669ca0ee36..e2ffcdc26cb7 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -267,8 +267,6 @@ enum { /* mount options live below bit 16 */ CGRP_ROOT_OPTION_MASK = (1 << 16) - 1, - - CGRP_ROOT_SUBSYS_BOUND = (1 << 16), /* subsystems finished binding */ }; /* |