]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: update cgroup->subsys_mask to ->child_subsys_mask and restore cgroup_root...
authorTejun Heo <tj@kernel.org>
Wed, 23 Apr 2014 15:13:14 +0000 (11:13 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 23 Apr 2014 15:13:14 +0000 (11:13 -0400)
commit31a82db578e578eac81927b89956aac507a4d366
treeadd95b5d189432489943674c0ab1ddc088cd63c1
parent18afacadf508fd1780165787132b09c02c0e767b
cgroup: update cgroup->subsys_mask to ->child_subsys_mask and restore cgroup_root->subsys_mask

14ac1fc6f8c4 ("cgroup: move ->subsys_mask from cgroupfs_root to
cgroup") moved ->subsys_mask from cgroup_root to cgroup to prepare for
the unified hierarhcy; however, it turns out that carrying the
subsys_mask of the children in the parent, instead of itself, is a lot
more natural.  This patch restores cgroup_root->subsys_mask and morphs
cgroup->subsys_mask into cgroup->child_subsys_mask.

* Uses of root->cgrp.subsys_mask are restored to root->subsys_mask.

* Remove automatic setting and clearing of cgrp->subsys_mask and
  instead just inherit ->child_subsys_mask from the parent during
  cgroup creation.  Note that this doesn't affect any current
  behaviors.

* Undo __kill_css() separation.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
include/linux/cgroup.h
kernel/cgroup.c