]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/core: Swap the order between sched_post_fork() and cgroup_post_fork()
authorTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:02 +0000 (07:58 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:02 +0000 (07:58 -1000)
commit19d0e98c20f079352f7c9098338520e09086e5ab
tree7a331c26a45e30e88501022ac25b7324a9ce4cda
parente3715e397720c9f6068aff4f7babccd3cb6ef618
sched/core: Swap the order between sched_post_fork() and cgroup_post_fork()

The planned sched_ext cgroup sub-scheduler support needs the newly forked
task to be associated with its cgroup in its post_fork() hook. There is no
existing ordering requirement between the two now. Swap them and note the
new ordering requirement.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Cc: Ingo Molnar <mingo@redhat.com>
kernel/fork.c