]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched/fair: Fix pelt lost idle time detection
authorVincent Guittot <vincent.guittot@linaro.org>
Wed, 8 Oct 2025 13:12:14 +0000 (15:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2025 13:04:35 +0000 (14:04 +0100)
commit28e52c784cfc558d768b30c96fe5153de5534e39
tree2e7fdd56f9f6d7d62d83c9e44991c208a9d7a1f7
parent28d4e164cdaaa0a962725713e23092a4079cd797
sched/fair: Fix pelt lost idle time detection

[ Upstream commit 17e3e88ed0b6318fde0d1c14df1a804711cab1b5 ]

The check for some lost idle pelt time should be always done when
pick_next_task_fair() fails to pick a task and not only when we call it
from the fair fast-path.

The case happens when the last running task on rq is a RT or DL task. When
the latter goes to sleep and the /Sum of util_sum of the rq is at the max
value, we don't account the lost of idle time whereas we should.

Fixes: 67692435c411 ("sched: Rework pick_next_task() slow-path")
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/sched/fair.c