]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched: Skip non-root task_groups with disabled RT_GROUP_SCHED
authorMichal Koutný <mkoutny@suse.com>
Mon, 10 Mar 2025 17:04:37 +0000 (18:04 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 8 Apr 2025 18:55:53 +0000 (20:55 +0200)
commit61d3164fec2ed283645dc17fcc51959e8f361e18
treeff6eda19b63035c31b93cf9f7a053213135bf023
parente34e0131fea1b0f63c2105a1958c94af2ee90f4d
sched: Skip non-root task_groups with disabled RT_GROUP_SCHED

First, we want to prevent placement of RT tasks on non-root rt_rqs which
we achieve in the task migration code that'd fall back to
root_task_group's rt_rq.

Second, we want to work with only root_task_group's rt_rq when iterating
all "real" rt_rqs when RT_GROUP is disabled. To achieve this we keep
root_task_group as the first one on the task_groups and break out
quickly.

Signed-off-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250310170442.504716-6-mkoutny@suse.com
kernel/sched/core.c
kernel/sched/rt.c
kernel/sched/sched.h