Re: [PATCH v12 27/43] sched/deadline: Replenish a throttled task boosted while asleep
From: Juri Lelli
Date: Mon Nov 30 2026 - 09:49:44 EST
Hello,
On 27/11/26 09:35, Mathieu Desnoyers wrote:
...
> The refill reads the parameters of the donor, from the timer. So this
> relies on two earlier patches. "sched/deadline: Do not replenish a boost
> from cleared parameters" keeps the refill from looping on cleared
> parameters. "rtmutex: Continue the chain walk when a waiter's deadline
> donor changes" keeps the donor pointer from going stale.
I think the second one should rather be "sched/deadline: Hold a
reference on the deadline donor of a boosted task" (23/43)?
What the refill from the timer needs is a donor pointer that points to
valid memory. The chain walk patch keeps the donor up to date in more
cases, but cannot guarantee that (its changelog leaves a stale donor as
a known limit and points to 23 for it). With the reference, a stale
donor is still readable, and if it left the class its cleared
parameters are handled by the first one. A stale but still valid donor
only makes the refill less accurate, as for a boosted task that is
queued today.
The other way around, without 23 this patch adds a reader of a donor
that can be gone, from the timer.
So maybe 23 and this one can go together, ahead of the rest of the
series? If it makes sense, could you please fix the changelog
accordingly?
With that,
Reviewed-by: Juri Lelli <juri.lelli@xxxxxxxxxx>
Thanks,
Juri