aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHaorui He <mail@hehaorui.com>2025-01-12 22:49:20 +0800
committerTejun Heo <tj@kernel.org>2025-01-21 09:24:47 -1000
commit4a6780a30e86cde7756954981db9e6aec285793d (patch)
tree27918347454f3d30545721089008f6d10148aac3
parentMerge tag 'x86_misc_for_v6.14_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip (diff)
downloadwireguard-linux-4a6780a30e86cde7756954981db9e6aec285793d.tar.xz
wireguard-linux-4a6780a30e86cde7756954981db9e6aec285793d.zip
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 <mail@hehaorui.com> Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r--kernel/cgroup/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index d9061bd55436..805764cf14e2 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);