cgroup: remove redundant kernfs_activate in cgroup_setup_root()
authorWei Yang <richard.weiyang@linux.alibaba.com>
Fri, 25 Sep 2020 09:11:10 +0000 (17:11 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 30 Sep 2020 16:03:10 +0000 (12:03 -0400)
This step is already done in rebind_subsystems().

Not necessary to do it again.

Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c

index dd247747ec14a622d47037e66e5b43dfbd4e6f24..809b135881246a616b92f59d71d02105bba52ef4 100644 (file)
@@ -2006,7 +2006,6 @@ int cgroup_setup_root(struct cgroup_root *root, u16 ss_mask)
        BUG_ON(!list_empty(&root_cgrp->self.children));
        BUG_ON(atomic_read(&root->nr_cgrps) != 1);
 
-       kernfs_activate(root_cgrp->kn);
        ret = 0;
        goto out;