Re: [PATCH v10 30/40] sched/deadline: Start a period for a task requeued onto an rt_mutex
From: Mathieu Desnoyers
Date: Mon Nov 23 2026 - 09:01:31 EST
> Can __rt_mutex_start_proxy_lock() steal the rt_mutex using a stale
> task->dl.deadline before task_blocks_on_rt_mutex() runs dl_proxy_block()?
Yes, by reading. v11 will call dl_proxy_block() in
__rt_mutex_start_proxy_lock(), before the trylock.
> Does returning early on is_dl_boosted(dl_se) or !dl_se->dl_runtime leave
> p->dl.deadline at 0 (or expired) when p was PI-boosted while sleeping in
> FUTEX_WAIT_REQUEUE_PI?
Yes. In v11, dl_proxy_block() will start a period of the donor for a
boosted task whose deadline is 0 or has passed.
> Should an implicit-deadline task also start a new period here when
> dl_entity_overflow(dl_se, rq_clock(rq)) is true?
Yes. In v11, dl_proxy_block() will apply the wakeup rule to a task not
in its gap: update_dl_entity(). That covers the overflow.
> What happens if a constrained-deadline task has dl_se->deadline == 0 when
> rq_clock(rq) is still before dl_next_period(dl_se)?
Yes, it keeps the deadline of 0. That needs an rq clock still under one
period after boot. v11 will start a new period for a deadline of 0 first.
No case will test these four changes.
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com