]> git.ipfire.org Git - thirdparty/linux.git/commit
cgroup: Rename cgroup lifecycle hooks to cgroup_task_*()
authorTejun Heo <tj@kernel.org>
Wed, 29 Oct 2025 06:19:15 +0000 (20:19 -1000)
committerTejun Heo <tj@kernel.org>
Mon, 3 Nov 2025 21:46:18 +0000 (11:46 -1000)
commit16dad7801aad73138a2dff5ea950130646914d1f
treee5449a46c604e270a629ceddcaad08729ceab971
parentd5cf4d34a3331aa1dba954949ea71b5eafcbf0a8
cgroup: Rename cgroup lifecycle hooks to cgroup_task_*()

The current names cgroup_exit(), cgroup_release(), and cgroup_free() are
confusing because they look like they're operating on cgroups themselves when
they're actually task lifecycle hooks. For example, cgroup_init() initializes
the cgroup subsystem while cgroup_exit() is a task exit notification to
cgroup. Rename them to cgroup_task_exit(), cgroup_task_release(), and
cgroup_task_free() to make it clear that these operate on tasks.

Cc: Dan Schatzberg <dschatzberg@meta.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Reviewed-by: Chen Ridong <chenridong@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cgroup.h
kernel/cgroup/cgroup.c
kernel/exit.c
kernel/fork.c
kernel/sched/autogroup.c