]> git.ipfire.org Git - thirdparty/linux.git/commit
sched/fair: Remove spurious shorter slice preemption
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 8 Jul 2025 16:56:27 +0000 (18:56 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 9 Jul 2025 11:40:22 +0000 (13:40 +0200)
commit9de74a9850b9468ac2f515bfbe0844e0bfae869d
tree713f0b9a7b5bf35e881d82db8f07faa8a6f5f880
parent74eec63661d46a7153d04c2e0249eeb76cc76d44
sched/fair: Remove spurious shorter slice preemption

Even if the waking task can preempt current, it might not be the one
selected by pick_task_fair. Check that the waking task will be selected
if we cancel the slice protection before doing so.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250708165630.1948751-4-vincent.guittot@linaro.org
kernel/sched/fair.c