Re: [PATCH v12 34/43] sched/deadline: Cancel the replenishment timer with the parameters
From: Mathieu Desnoyers
Date: Tue Dec 01 2026 - 11:20:25 EST
> Can dl_task_timer() advance dl_next_period(dl_se) before cancel_replenish_timer()
> is reached, extending a departed constrained task's bandwidth reservation by
> an extra period?
Yes. This errs on the safe side. The refill starts the next period of
the task, with runtime. A task that comes back during that period runs
in it. So its bandwidth stays counted until the end of that period. v13
leaves it as it is.
> Also, the commit message says that a constrained-deadline task that overran
> by little reaches its 0-lag time before the end of its period and has its
> timer cancelled at the 0-lag time, which does not match counting the 0-lag
> time from dl_next_period(dl_se) and keeping departing constrained tasks
> until dl_next_period(dl_se).
You are right. The second bullet holds on v7.4-rc2. In this series,
"sched/deadline: Count the 0-lag time from the next period" puts the
0-lag time of an overrun after the next period. The first bullet, a task
that yielded, holds either way. In v13, the message will say that the
second case holds on v7.4-rc2.
Thanks,
Mathieu