Skip to content

Commit c2602a7

Browse files
committed
Merge tag 'sched_urgent_for_v5.19_rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fix from Borislav Petkov: "A single fix to correct a wrong BUG_ON() condition for deboosted tasks" * tag 'sched_urgent_for_v5.19_rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched/deadline: Fix BUG_ON condition for deboosted tasks
2 parents 05017fe + ddfc710 commit c2602a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kernel/sched/deadline.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,10 @@ static void enqueue_task_dl(struct rq *rq, struct task_struct *p, int flags)
17011701
* the throttle.
17021702
*/
17031703
p->dl.dl_throttled = 0;
1704-
BUG_ON(!is_dl_boosted(&p->dl) || flags != ENQUEUE_REPLENISH);
1704+
if (!(flags & ENQUEUE_REPLENISH))
1705+
printk_deferred_once("sched: DL de-boosted task PID %d: REPLENISH flag missing\n",
1706+
task_pid_nr(p));
1707+
17051708
return;
17061709
}
17071710

0 commit comments

Comments
 (0)