Commit 95d32518 authored by Wei Yang's avatar Wei Yang Committed by Tejun Heo
Browse files

cgroup: remove redundant kernfs_activate in cgroup_setup_root()



This step is already done in rebind_subsystems().

Not necessary to do it again.

Signed-off-by: default avatarWei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 02de58b2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;