sched/fair: Always trigger resched at the end of a protected period
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 8 Jul 2025 16:56:30 +0000 (18:56 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 9 Jul 2025 11:40:23 +0000 (13:40 +0200)
commit0b9ca2dcabc3c8816a6ee75599cab7bef3330609
treee299f286c14ed0b72d791b0188822ea3318a26a4
parent3a0baa8e6c570c252999cb651398a88f8f990b4a
sched/fair: Always trigger resched at the end of a protected period

Always trigger a resched after a protected period even if the entity is
still eligible. It can happen that an entity remains eligible at the end
of the protected period but must let an entity with a shorter slice to run
in order to keep its lag shorter than slice. This is particulalry true
with run to parity which tries to maximize the lag.

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-7-vincent.guittot@linaro.org
kernel/sched/fair.c