]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cgroup: update comment about dropping cgroup kn refs
authorHaorui He <mail@hehaorui.com>
Sun, 12 Jan 2025 14:49:20 +0000 (22:49 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 21 Jan 2025 19:24:47 +0000 (09:24 -1000)
the cgroup is actually freed in css_free_rwork_fn() now
the ref count of the cgroup's kernfs_node is also dropped there
so we need to update the corresponding comment in cgroup_mkdir()

Signed-off-by: Haorui He <mail@hehaorui.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c

index d9061bd55436b502e065b477a903ed682d722c2e..805764cf14e2ff4c66e9895574c05d06ee3cbce5 100644 (file)
@@ -5835,7 +5835,7 @@ int cgroup_mkdir(struct kernfs_node *parent_kn, const char *name, umode_t mode)
        }
 
        /*
-        * This extra ref will be put in cgroup_free_fn() and guarantees
+        * This extra ref will be put in css_free_rwork_fn() and guarantees
         * that @cgrp->kn is always accessible.
         */
        kernfs_get(cgrp->kn);