Re: [PATCH 12/16] sched/deadline: Fix this_bw when a task is changed during a remote wakeup

From: Mathieu Desnoyers

Date: Wed Nov 18 2026 - 16:11:25 EST


> Can add_rq_bw() set dl_bw_oncpu = 1 while dl_se->dl_bw is 0 for a PI-boosted
> non-deadline task, causing dl_rq->this_bw to miss a later SCHED_DEADLINE
> bandwidth assignment?

Yes, but this patch does not cause it. Without it, the boost adds 0 to
this_bw too, and the same sched_setattr() leaves the new bandwidth out.

"sched/deadline: Count the bandwidth a boosted task is given", in the
second series, fixes it. __setparam_dl() changes this_bw for every task
that gains deadline parameters. With dl_bw_oncpu set, the old bandwidth
of 0 is replaced by the new one.

Thanks,

Mathieu

--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com