Re: [PATCH 07/16] sched/deadline: Do not lose a throttled task switched out and back
From: Mathieu Desnoyers
Date: Wed Nov 18 2026 - 16:09:43 EST
> This problem wasn't introduced by this patch, but in the opposite order
> where the 0-lag time elapses before dl_se->dl_timer fires [1], does
> __dl_clear_params() leave a stale dl_se->dl_timer armed along with stale
> dl_se->deadline and dl_se->runtime values?
Yes. Two patches fix it:
- Patch 9 of this series resets the deadline and the runtime in
__dl_clear_params(). It is "sched/deadline: Reset the deadline and
the runtime with the parameters".
- "sched/deadline: Cancel the replenishment timer with the parameters"
cancels the timer there. It is in the second series, which applies on
top of this one.
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com