Re: [PATCH v12 22/43] rtmutex: Do not stop the chain walk at an owner whose top waiter changed
From: Mathieu Desnoyers
Date: Tue Dec 01 2026 - 11:20:03 EST
> Does rt_mutex_adjust_prio_chain() also need to reset requeue to true on each
> retry and step when detect_deadlock is enabled?
No. requeue stays false by design, as on v7.4-rc2. Once requeue is
false, the walk changes no priority. It goes on only to look for a
deadlock, where a walk without deadlock detection would stop.
A priority change made while task->pi_lock is dropped starts a chain
walk of its own:
- sched_setattr() calls rt_mutex_adjust_pi().
- A walk that changes the deadline donor of @task, in
rt_mutex_setprio(), goes on to @task.
Each of these walks finds the waiter of @task out of date, and requeues
it.
This patch will leave v13. It moves to the next version of my rtmutex
series.
Thanks,
Mathieu