UPSTREAM: cgroup: remove redundant kernfs_activate in cgroup_setup_root()

This step is already done in rebind_subsystems().

Not necessary to do it again.

Change-Id: I52ce477a90ee58845d1848d8272b2455ef0ddf26
Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Wei Yang 2020-09-25 17:11:10 +08:00 • committed by basamaryan
commit b7203cb42a
No known key found for this signature in database
GPG key ID: 210D5384FB2A5885

View file

@ -2163,7 +2163,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;