]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched: Always initialize rt_rq's task_group
authorMichal Koutný <mkoutny@suse.com>
Mon, 10 Mar 2025 17:04:35 +0000 (18:04 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 8 Apr 2025 18:55:53 +0000 (20:55 +0200)
commita5a25b32c08a31c03258ec4960bec26caaf76e9a
treef8a511ebe7aa4135262a64d70893b634bbf24cc1
parente285313f0848157cc3c6827d233a2510167b50cf
sched: Always initialize rt_rq's task_group

rt_rq->tg may be NULL which denotes the root task_group.
Store the pointer to root_task_group directly so that callers may use
rt_rq->tg homogenously.

root_task_group exists always with CONFIG_CGROUPS_SCHED,
CONFIG_RT_GROUP_SCHED depends on that.

This changes root level rt_rq's default limit from infinity to the
value of (originally) global RT throttling.

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