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

From: Mathieu Desnoyers

Date: Fri Nov 27 2026 - 08:49:23 EST


> Can keeping the period placed by dl_note_donor_refill() here leave
> dl_se->runtime at 0 or resume a stale donor's deadline and runtime?

Both can happen:
1. A runtime of 0 costs at most one tick. The next update_curr_dl_se()
refills the task from the donor, as after an overrun.
2. In v12, a resumed donor period will take its deadline from the
current donor. Its runtime will be capped at the donor's runtime:
see my reply on patch 38.

> When the donor leaves SCHED_DEADLINE and has its parameters cleared on
> another CPU before the rt_mutex chain walk deboosts the owner, can
> returning false here after setting dl_se->dl_boost_held = 1 corrupt the
> owner's period and saved boost state?

It can, in a race with the donor leaving the class. What is left is
one stale set of boost_* values, and at most one donor period resumed
from it, with no runtime. The next refill gives the task a new donor
period. Your second and third paths behave as on v7.4-rc2. v12 will
leave it as it is.

Thanks,

Mathieu