[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210819182849.ztz6kswedrzpiaon@linutronix.de>
Date: Thu, 19 Aug 2021 20:28:49 +0200
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>,
LKML <linux-kernel@...r.kernel.org>,
Ingo Molnar <mingo@...nel.org>,
Juri Lelli <juri.lelli@...hat.com>,
Steven Rostedt <rostedt@...dmis.org>,
Daniel Bristot de Oliveira <bristot@...hat.com>,
Will Deacon <will@...nel.org>,
Waiman Long <longman@...hat.com>,
Boqun Feng <boqun.feng@...il.com>,
Davidlohr Bueso <dave@...olabs.net>,
Mike Galbraith <efault@....de>,
Guenter Roeck <linux@...ck-us.net>
Subject: Re: [patch V5 41/72] locking/ww_mutex: Gather mutex_waiter
initialization
On 2021-08-19 20:17:53 [+0200], Peter Zijlstra wrote:
> You mean the 'use_ww_ctx && !ww_ctx' case?
>
> Would not the below also help with that?
Yes, it does, just tested.
> diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c
> index 3a65bf4bacfd..d456579d0952 100644
> --- a/kernel/locking/mutex.c
> +++ b/kernel/locking/mutex.c
> @@ -618,7 +618,7 @@ __mutex_lock_common(struct mutex *lock, unsigned int state, unsigned int subclas
>
> debug_mutex_lock_common(lock, &waiter);
> waiter.task = current;
> - if (ww_ctx)
> + if (use_ww_ctx)
> waiter.ww_ctx = ww_ctx;
>
> lock_contended(&lock->dep_map, ip);
Sebastian
Powered by blists - more mailing lists