]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched/eevdf: Force propagating min_slice of cfs_rq when {en,de}queue tasks
authorTianchen Ding <dtcccc@linux.alibaba.com>
Tue, 11 Feb 2025 06:36:59 +0000 (14:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:10 +0000 (14:39 +0200)
commitb576c4834d5a36ea74ba1335220de96e19386141
treeef8b5c17cfa93e3b01ea493c6341d978a37cc199
parent7b1d2454d0b6dd2b44d370caa163fbdde928c650
sched/eevdf: Force propagating min_slice of cfs_rq when {en,de}queue tasks

[ Upstream commit 563bc2161b94571ea425bbe2cf69fd38e24cdedf ]

When a task is enqueued and its parent cgroup se is already on_rq, this
parent cgroup se will not be enqueued again, and hence the root->min_slice
leaves unchanged. The same issue happens when a task is dequeued and its
parent cgroup se has other runnable entities, and the parent cgroup se
will not be dequeued.

Force propagating min_slice when se doesn't need to be enqueued or
dequeued. Ensure the se hierarchy always get the latest min_slice.

Fixes: aef6987d8954 ("sched/eevdf: Propagate min_slice up the cgroup hierarchy")
Signed-off-by: Tianchen Ding <dtcccc@linux.alibaba.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250211063659.7180-1-dtcccc@linux.alibaba.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/sched/fair.c