]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/fair: Fix the negative lag increase fix
authorPeter Zijlstra <peterz@infradead.org>
Thu, 23 Apr 2026 11:22:22 +0000 (13:22 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 28 Apr 2026 07:19:54 +0000 (09:19 +0200)
commitc5cd6fd75b6a55761337c9e965dd5ad02485d00d
tree6c40d9fb1b3dbe26553bd1b1cc2a305fa3118acb
parent254f49634ee16a731174d2ae34bc50bd5f45e731
sched/fair: Fix the negative lag increase fix

Vincent reported that my rework of his original patch lost a little
something.

Specifically it got the return value wrong; it should not compare
against the old se->vlag, but rather against the current value. Since
the thing that matters is if the effective vruntime of an entity is
affected and the thing needs repositioning or not.

Fixes: 059258b0d424 ("sched/fair: Prevent negative lag increase during delayed dequeue")
Reported-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://patch.msgid.link/20260423094107.GT3102624%40noisy.programming.kicks-ass.net
kernel/sched/fair.c