Re: [PATCH v11 28/43] sched/deadline: Restore the owner's period at a deboost in the class
From: Mathieu Desnoyers
Date: Fri Nov 27 2026 - 08:49:18 EST
> Can dl_note_donor_refill() call dl_hold_refilled_boost() when
> dl_se->deadline is still 0?
Yes, for a task with parameters but no period yet. v12 will hold no
boost for it: dl_note_donor_refill() will skip a deadline of 0. The
task then gets a period of its own at its deboost, or at its wakeup if
it is asleep.
> Can this leave rq->dl.running_bw under-accounted when a task blocks after a
> donor refill and is deboosted while still blocked?
Yes, as on v7.4-rc2. There too, the 0-lag time of a task that blocks
while boosted mixes the donor's runtime with the task's own bandwidth.
Only running_bw is affected, not total_bw. v12 will leave it as it is.
> Does dl_deboost() start a new period (or arm dl_timer to replenish one)
> while a constrained-deadline task is sleeping on a non-PI waitqueue?
Yes. In v12, a deboost of a task asleep on anything but an rt_mutex
will start no period. A task that was throttled before the boost stays
throttled. Any other task is left to its wakeup, which throttles it in
its constrained gap, or starts its next period.
> When a boosted task with !dl_se->dl_deadline is replenished after its
> donor's parameters were cleared (!runtime || !deadline || !period), does
> this miss calling dl_note_donor_refill(dl_se)?
Yes, if the donor's parameters are cleared right before the first
refill. v12 will record the refill in that branch too.
Thanks,
Mathieu