Re: [PATCH] locking/mutex: initialize osq lock in __MUTEX_INITIALIZER()

2021-04-14 Thread Nikitas Angelinas
On Mon, Mar 29, 2021 at 03:50:56PM +0100, Will Deacon wrote: > On Mon, Mar 29, 2021 at 12:15:16AM -0700, Nikitas Angelinas wrote: > > Since __MUTEX_INITIALIZER() is used on memory that is initialized to 0 > > anyway this change should not have an effect, but it seems better to > > initialize osq ex

Re: [PATCH] locking/mutex: initialize osq lock in __MUTEX_INITIALIZER()

2021-03-29 Thread Will Deacon
On Mon, Mar 29, 2021 at 12:15:16AM -0700, Nikitas Angelinas wrote: > Since __MUTEX_INITIALIZER() is used on memory that is initialized to 0 > anyway this change should not have an effect, but it seems better to > initialize osq explicitly for completeness, as done in other macros and > functions th

[PATCH] locking/mutex: initialize osq lock in __MUTEX_INITIALIZER()

2021-03-29 Thread Nikitas Angelinas
Since __MUTEX_INITIALIZER() is used on memory that is initialized to 0 anyway this change should not have an effect, but it seems better to initialize osq explicitly for completeness, as done in other macros and functions that initialize mutex and rwsem. Signed-off-by: Nikitas Angelinas --- incl