]> git.karo-electronics.de Git - linux-beck.git/commit
cgroup: reorganize cgroup bootstrapping
authorTejun Heo <tj@kernel.org>
Wed, 19 Mar 2014 14:23:53 +0000 (10:23 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 19 Mar 2014 14:23:53 +0000 (10:23 -0400)
commit172a2c0685ff3bc0b7a611b308aac0694de34594
tree3cafd39bf2053827001d9af18f62ebd2e649b8c1
parent5d77381fd8aa631a8fda718c395da1319afb5d2d
cgroup: reorganize cgroup bootstrapping

* Fields of init_css_set and css_set_count are now set using
  initializer instead of programmatically from cgroup_init_early().

* init_cgroup_root() now also takes @opts and performs the optional
  part of initialization too.  The leftover part of
  cgroup_root_from_opts() is collapsed into its only caller -
  cgroup_mount().

* Initialization of cgroup_root_count and linking of init_css_set are
  moved from cgroup_init_early() to to cgroup_init().  None of the
  early_init users depends on init_css_set being linked.

* Subsystem initializations are moved after dummy hierarchy init and
  init_css_set linking.

These changes reorganize the bootstrap logic so that the dummy
hierarchy can share the usual hierarchy init path and be made more
normal.  These changes don't make noticeable behavior changes.

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