Re: [PATCH] locking/mutex: Redo __mutex_init()
From: Sebastian Andrzej Siewior
Date: Wed Nov 05 2025 - 08:54:29 EST
On 2025-11-05 08:49:05 [-0500], Waiman Long wrote:
> > If you want __mutex_init() for the generic, regardless, we would first
> > need to make room and then something like mutex_init_lockdep() could be
> > the public interface replacing __mutex_init() in its current function.
>
> Ah, I don't realize that there are users of __mutex_init() outside of the
> locking subsystem. In this case, we have to maintain the semantics of
> __mutex_init() to avoid affecting other subsystems.
Well, we could update them to mutex_init() +
lockdep_set_class_and_name(). Except probably for rust. But still if we
like _generic, we like _generic ;)
> Thanks for the clarification.
>
> Cheers,
> Longman
Sebastian