Re: [PATCH v7 10/40] sched/deadline: Reset the deadline and the runtime with the parameters

From: Mathieu Desnoyers

Date: Wed Nov 18 2026 - 08:34:28 EST


> Can a task deboosting via switched_from_dl() still retain a donor's
> deadline and runtime when p->dl.dl_runtime is non-zero?

Yes, and upstream does the same. This is known. The v7 cover letter
lists it under "Not changed". At a deboost, the 0-lag time of a task
comes from the deadline and runtime of the boost.

It cannot be fixed without the deadline and runtime the task had before
the boost. Nothing stores them. A new period of its own at that point
gives a 0-lag time of about now. That releases the bandwidth at once.

> otherwise, p keeps the donor's runtime and can consume it on top of
> its own reservation if it re-enters SCHED_DEADLINE before the
> inactive timer fires.

That return is checked. Patches 35 and 36 check the runtime left against
the task's own parameters, as a wakeup does. A runtime that does not fit
starts a new period.

The cover letter of the next version states this point more clearly
under "Not changed". All of this was checked by reading.

Thanks,

Mathieu

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