Re: [PATCH v9 32/33] sched/deadline: Check the runtime of a task whose parameters change
From: Mathieu Desnoyers
Date: Fri Nov 20 2026 - 14:41:18 EST
> Should dl_deboost() also cancel inactive_timer and subtract running_bw
> when a donor-refilled task is deboosted while asleep in SCHED_DEADLINE?
Yes. v10 will cancel that timer at the deboost too, in "sched/deadline:
Reset the donor's runtime at a deboost in the class". It will then
compute the 0-lag time of the new period, which is now. A new case,
deboost_in_asleep_after_refill, will test it. It fails without the fix.
Your last paragraph does not happen. If the task leaves the class with
the timer still armed, switched_from_dl() keeps the timer. Its handler
then releases the bandwidth from total_bw, for a task out of the class.
The release only comes late, when the timer fires.
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com