OSDN Git Service

cgroup: fix obsolete function name in cgroup_destroy_locked()
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 3 Aug 2023 11:57:02 +0000 (19:57 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 4 Aug 2023 00:13:33 +0000 (14:13 -1000)
Since commit e76ecaeef65c ("cgroup: use cgroup_kn_lock_live() in other
cgroup kernfs methods"), cgroup_kn_lock_live() is used in cgroup kernfs
methods. Update corresponding comment.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c

index f9cde56..85e723a 100644 (file)
@@ -5871,7 +5871,7 @@ static int cgroup_destroy_locked(struct cgroup *cgrp)
        /*
         * Mark @cgrp and the associated csets dead.  The former prevents
         * further task migration and child creation by disabling
-        * cgroup_lock_live_group().  The latter makes the csets ignored by
+        * cgroup_kn_lock_live().  The latter makes the csets ignored by
         * the migration path.
         */
        cgrp->self.flags &= ~CSS_ONLINE;