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 <[email protected]> Signed-off-by: Juri Lelli <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Valentin Schneider <[email protected]> Reviewed-by: Dietmar Eggemann <[email protected]> Tested-by: Waiman Long <[email protected]> Tested-by: Jon Hunter <[email protected]> Tested-by: Dietmar Eggemann <[email protected]> Link: https://lore.kernel.org/r/[email protected]
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)