Skip to content

Commit 4a6780a

Browse files
hehaoruihtejun
authored andcommitted
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>
1 parent b9d8a29 commit 4a6780a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/cgroup/cgroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5835,7 +5835,7 @@ int cgroup_mkdir(struct kernfs_node *parent_kn, const char *name, umode_t mode)
58355835
}
58365836

58375837
/*
5838-
* This extra ref will be put in cgroup_free_fn() and guarantees
5838+
* This extra ref will be put in css_free_rwork_fn() and guarantees
58395839
* that @cgrp->kn is always accessible.
58405840
*/
58415841
kernfs_get(cgrp->kn);

0 commit comments

Comments
 (0)