Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched/deadline: Ignore special tasks when rebuilding domains

SCHED_DEADLINE special tasks get a fake bandwidth that is only used to
make sure sleeping and priority inheritance 'work', but it is ignored
for runtime enforcement and admission control.

Be consistent with it also when rebuilding root domains.

Fixes: 53916d5fd3c0 ("sched/deadline: Check bandwidth overflow earlier for hotplug")
Reported-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Tested-by: Waiman Long <longman@redhat.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Link: https://lore.kernel.org/r/20250313170011.357208-2-juri.lelli@redhat.com

authored by

Juri Lelli and committed by
Peter Zijlstra
f6147af1 3bffa47a

+1 -1
+1 -1
kernel/sched/deadline.c
··· 2956 2956 struct dl_bw *dl_b; 2957 2957 2958 2958 raw_spin_lock_irqsave(&p->pi_lock, rf.flags); 2959 - if (!dl_task(p)) { 2959 + if (!dl_task(p) || dl_entity_is_special(&p->dl)) { 2960 2960 raw_spin_unlock_irqrestore(&p->pi_lock, rf.flags); 2961 2961 return; 2962 2962 }