cgroup: drop CGRP_ROOT_SUBSYS_BOUND
authorTejun Heo <tj@kernel.org>
Thu, 13 Feb 2014 11:58:38 +0000 (06:58 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 13 Feb 2014 11:58:38 +0000 (06:58 -0500)
commit35585573055f37837eb752ee22eb5523682ca742
tree6cf006b6409e6256ca4d3a81eb5701cde931a324
parentd3ba07c3aa9ae3e03329b0a7f1a067c0647aa2af
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>
include/linux/cgroup.h
kernel/cgroup.c
This page took 0.025113 seconds and 5 git commands to generate.