From: Haorui He Date: Sun, 12 Jan 2025 14:49:20 +0000 (+0800) Subject: cgroup: update comment about dropping cgroup kn refs X-Git-Tag: v6.15-rc1~228^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a6780a30e86cde7756954981db9e6aec285793d;p=thirdparty%2Fkernel%2Flinux.git cgroup: update comment about dropping cgroup kn refs 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 Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index d9061bd55436b..805764cf14e2f 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -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);