Re: [PATCH v12 41/43] sched/deadline: Run a boost held at its first refill on a donor period

From: Mathieu Desnoyers

Date: Tue Dec 01 2026 - 11:20:54 EST


> Does holding a boost on its first refill emit trace_sched_dl_replenish_tp()
> twice for a single replenishment?

Yes, in v12. In the PI series, which will follow v13,
dl_boost_donor_period() will set a new donor period itself from the
donor's parameters. It will no longer call replenish_dl_new_period() for
it. The refill then emits the tracepoint once.

> Can clearing the donor's parameters corrupt dl_se's period and saved
> boost_* state?

It can, in a race with the donor leaving SCHED_DEADLINE. What is left is
one stale set of boost_* values. In the PI series, the next held boost
will not take them as they are. dl_boost_donor_period() will fit them to
the new donor, or start a new donor period. Your points 2 and 3 behave
as on v7.4-rc2. They are the refill from the cleared parameters, and the
second reads of the donor's parameters. The PI series leaves them as
they are.

Thanks,

Mathieu