sched/ext: Remove sched_fork() hack
authorThomas Gleixner <tglx@linutronix.de>
Mon, 28 Oct 2024 13:20:35 +0000 (14:20 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 Nov 2024 11:55:37 +0000 (12:55 +0100)
commit0f0d1b8e5010bfe1feeb4d78d137e41946a5370d
tree8c86a8d25abdf6e1001d283a8f3b20e175ee399f
parentb23decf8ac9102fc52c4de5196f4dc0a5f3eb80b
sched/ext: Remove sched_fork() hack

Instead of solving the underlying problem of the double invocation of
__sched_fork() for idle tasks, sched-ext decided to hack around the issue
by partially clearing out the entity struct to preserve the already
enqueued node. A provided analysis and solution has been ignored for four
months.

Now that someone else has taken care of cleaning it up, remove the
disgusting hack and clear out the full structure. Remove the comment in the
structure declaration as well, as there is no requirement for @node being
the last element anymore.

Fixes: f0e1a0643a59 ("sched_ext: Implement BPF extensible scheduler class")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/87ldy82wkc.ffs@tglx
include/linux/sched/ext.h
kernel/sched/ext.c