aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cgroup
diff options
context:
space:
mode:
authorChuyi Zhou <zhouchuyi@bytedance.com>2025-09-04 15:45:05 +0800
committerTejun Heo <tj@kernel.org>2025-09-04 07:25:20 -1000
commitd8b269e009bbc471cb2735b5f737839495efce3b (patch)
tree948dd60ea3b54b4ce0cbc86aa0002066dbb272ee /kernel/cgroup
parentcpuset: Defer flushing of the cpuset_migrate_mm_wq to task_work (diff)
downloadlinux-d8b269e009bbc471cb2735b5f737839495efce3b.tar.gz
linux-d8b269e009bbc471cb2735b5f737839495efce3b.zip
cgroup: Remove unused cgroup_subsys::post_attach
cgroup_subsys::post_attach callback was introduced in commit 5cf1cacb49ae ("cgroup, cpuset: replace cpuset_post_attach_flush() with cgroup_subsys->post_attach callback") and only cpuset would use this callback to wait for the mm migration to complete at the end of __cgroup_procs_write(). Since the previous patch defer the flush operation until returning to userspace, no one use this callback now. Remove this callback from cgroup_subsys. Signed-off-by: Chuyi Zhou <zhouchuyi@bytedance.com> Acked-by: Waiman Long <longman@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r--kernel/cgroup/cgroup.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index b38d7a847ed4..0dc6ad71f175 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -3033,10 +3033,6 @@ void cgroup_procs_write_finish(struct task_struct *task, bool threadgroup_locked
put_task_struct(task);
cgroup_attach_unlock(threadgroup_locked);
-
- for_each_subsys(ss, ssid)
- if (ss->post_attach)
- ss->post_attach();
}
static void cgroup_print_ss_mask(struct seq_file *seq, u16 ss_mask)