From: Wei Yang Date: Fri, 25 Sep 2020 09:11:10 +0000 (+0800) Subject: cgroup: remove redundant kernfs_activate in cgroup_setup_root() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=95d325185c06cbef1c5be97825265a7129a03512;p=linux.git 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: Wei Yang Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index dd247747ec14a..809b135881246 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -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;