Skip to content

Commit f6147af

Browse files
jlelliPeter Zijlstra
authored andcommitted
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: 53916d5 ("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
1 parent 3bffa47 commit f6147af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/deadline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2956,7 +2956,7 @@ void dl_add_task_root_domain(struct task_struct *p)
29562956
struct dl_bw *dl_b;
29572957

29582958
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)) {
29602960
raw_spin_unlock_irqrestore(&p->pi_lock, rf.flags);
29612961
return;
29622962
}

0 commit comments

Comments
 (0)