Re: [PATCH] rtmutex: Introduce __cleanup() based infrastructure
From: Sebastian Andrzej Siewior
Date: Mon Feb 02 2026 - 12:58:48 EST
On 2026-02-02 18:04:43 [+0100], Thomas Böhler wrote:
> Commit 54da6a092431 ("locking: Introduce __cleanup() based
> infrastructure") introduced lock guards for mutexes in
> include/linux/mutex.h, but, presumably as PREEMPT_RT wasn't merged at
> the time, the guard for rt_mutex was never created. Do this now so this
> infrastructure exists for rt_mutex as well.
Wait, what? rt_mutex can be used independently of PREEMPT_RT.
I suggest you focus on what this patch does in its description and
repost it with the locking maintainer in Cc.
Do you plan to have any users of this?
> Signed-off-by: Thomas Böhler <witcher@xxxxxxxxxxxxx>
Sebastian