Re: [PATCH v2] locking/rtmutex: Annotate API and implementation
From: Sebastian Andrzej Siewior
Date: Thu May 07 2026 - 03:32:33 EST
On 2026-05-06 11:53:05 [+0200], Bart Van Assche wrote:
> On 5/6/26 9:35 AM, Sebastian Andrzej Siewior wrote:
> > Hmm. This mostly reassembles __mutex_lock() from mutex.c which does the
> > same thing. Couldn't we get away doing the same thing meaning a
> > __cond_acquires() on those with a return value and a __acquire() in the
> > void case? I think it would make sense to keep those two close in terms
> > of annotations.
>
> Please take a look at the rt_mutex_lock() changes in the diff below.
So that warning keeps all trouble away and shouldn't trigger anyway.
Okay.
> Thanks,
>
> Bart.
Sebastian