Re: [PATCH 09/16] sched/deadline: Reset the deadline and the runtime with the parameters

From: Mathieu Desnoyers

Date: Wed Nov 18 2026 - 16:10:52 EST


> Can a task still retain the donor's runtime and deadline after a PI
> deboost if p->dl.dl_runtime is non-zero?

Yes, in both cases. This patch only resets a task with no parameters
of its own. The second series, which applies on top of this one,
handles the others:
- "sched/deadline: Reset the donor's runtime at a deboost in the class"
covers a task that sched_setattr() makes SCHED_DEADLINE while
boosted. Its message names that case.
- "sched/deadline: Count the bandwidth a boosted task is given" adds the
new bandwidth to this_bw in __setparam_dl(). The warning goes away.
- For a task boosted before its 0-lag time, I answered on v7: the 0-lag
time computed from the donor's deadline is upstream behaviour. "Check
the runtime of a task that comes back runnable" checks the runtime
when the task comes back.

> If dl_se->dl_timer was armed before the task left SCHED_DEADLINE, can
> leaving it queued in __dl_clear_params() unthrottle the task's new period
> early?

Yes. "sched/deadline: Cancel the replenishment timer with the
parameters", in the second series, cancels it in __dl_clear_params().

Thanks,

Mathieu

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