Re: [PATCH v2 2/5] locking/rtmutex: Initialize the ww_mutex context of a waiter
From: Sebastian Andrzej Siewior
Date: Wed Nov 18 2026 - 13:49:43 EST
On 2026-11-18 12:28:54 [-0500], Mathieu Desnoyers wrote:
> Hi Sebastian,
Hi Mathieu,
> > I would strip that paragraph because *I* think it is more important to
> > mention the FUTEX case which no longer does proper chainwalk regardless
> > of PREEMPT_RT.
>
> One point. The two tests of ww_ctx in rt_mutex_adjust_prio_chain() are
> under IS_ENABLED(CONFIG_PREEMPT_RT). Without PREEMPT_RT,
> futex_lock_pi_inherit gets EDEADLK in both cases, with or without this
> patch. So I kept the PREEMPT_RT condition in the message. Did you have
> another path in mind?
Indeed. This supposed to be simple code…
> With your changes, the message reads:
>
…
Good, works for me.
> Thanks!
>
> Mathieu
Sebastian