summaryrefslogtreecommitdiff
path: root/fs/ext4/inline.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2024-10-28 11:43:42 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-09 13:31:39 +0100
commit3adf89f17dbdac2e12eec31654eea93d0b016811 (patch)
treef29f02e3889f098e0b70fdbd8d4a527df3ca5552 /fs/ext4/inline.c
parent106740e978c716c755c0aeb12efb2180fa5ee962 (diff)
sched: Initialize idle tasks only once
[ Upstream commit b23decf8ac9102fc52c4de5196f4dc0a5f3eb80b ] Idle tasks are initialized via __sched_fork() twice: fork_idle() copy_process() sched_fork() __sched_fork() init_idle() __sched_fork() Instead of cleaning this up, sched_ext hacked around it. Even when analyis and solution were provided in a discussion, nobody cared to clean this up. init_idle() is also invoked from sched_init() to initialize the boot CPU's idle task, which requires the __sched_fork() invocation. But this can be trivially solved by invoking __sched_fork() before init_idle() in sched_init() and removing the __sched_fork() invocation from init_idle(). Do so and clean up the comments explaining this historical leftover. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20241028103142.359584747@linutronix.de Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/ext4/inline.c')
0 files changed, 0 insertions, 0 deletions