Re: [PATCH v12 39/43] sched/deadline: Boost an owner throttled after its waiter blocked

From: Mathieu Desnoyers

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


> Can rt_mutex_ask_dl_boost() observe a stale pi_tree.prio when a blocked
> waiter was promoted to SCHED_DEADLINE before becoming the lock's top
> waiter?

Yes. The stale pi_tree keys are a bug of v7.4-rc2. My rtmutex series
fixes it, in "locking/rtmutex: Clone the sort keys in
rt_mutex_enqueue_pi()". With that patch, rt_mutex_enqueue_pi() copies
the keys of a waiter as it puts it in pi_waiters. try_to_take_rt_mutex()
and remove_waiter() both call it. rt_mutex_ask_dl_boost() then reads
keys that are up to date.

> Should dl_boost_start() also hold the boost when dl_se->runtime <= 0?

Yes. In the PI series, which will follow v13, dl_waiter_boosts() and
dl_boost_start() will both use the new dl_cannot_run_own(). It is true
for a task that is throttled, in its constrained gap, or out of runtime
with its deadline still ahead. So dl_boost_start() will also hold the
boost of an owner out of runtime before its deadline, and run it on a
period of the donor.

Thanks,

Mathieu