]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched: Bypass bandwitdh checks with runtime disabled RT_GROUP_SCHED
authorMichal Koutný <mkoutny@suse.com>
Mon, 10 Mar 2025 17:04:38 +0000 (18:04 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 8 Apr 2025 18:55:54 +0000 (20:55 +0200)
commit277e0909754e9f3c82def97150d2f3ea700098f1
tree66bcdb7adc54ecea87cb003a2dde7da141a47777
parent61d3164fec2ed283645dc17fcc51959e8f361e18
sched: Bypass bandwitdh checks with runtime disabled RT_GROUP_SCHED

When RT_GROUPs are compiled but not exposed, their bandwidth cannot
be configured (and it is not initialized for non-root task_groups neither).
Therefore bypass any checks of task vs task_group bandwidth.

This will achieve behavior very similar to setups that have
!CONFIG_RT_GROUP_SCHED and attach cpu controller to cgroup v2 hierarchy.
(On a related note, this may allow having RT tasks with
CONFIG_RT_GROUP_SCHED and cgroup v2 hierarchy.)

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-7-mkoutny@suse.com
kernel/sched/core.c
kernel/sched/rt.c
kernel/sched/syscalls.c