[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241213135954.GD12500@noisy.programming.kicks-ass.net>
Date: Fri, 13 Dec 2024 14:59:54 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: John Stultz <jstultz@...gle.com>
Cc: LKML <linux-kernel@...r.kernel.org>, Ingo Molnar <mingo@...hat.com>,
Will Deacon <will@...nel.org>, Waiman Long <longman@...hat.com>,
Boqun Feng <boqun.feng@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Bert Karwatzki <spasswolf@....de>, kernel-team@...roid.com
Subject: Re: [RFC][PATCH] locking/rtmutex: Make sure we wake anything on the
wake_q when we release the lock->wait_lock
On Fri, Dec 13, 2024 at 01:46:15PM +0100, Peter Zijlstra wrote:
> +#define WRAP_WAKE(_stmt, _q) \
Realized that those are the wrong way around, this needs to be:
#define WRAP_WAKE(_q, _stmt...) \
to deal with all the ',' in things like:
> + WRAP_WAKE(res = __ww_mutex_add_waiter(waiter, rtm, ww_ctx, wake_q), wake_q);
Anyway, still not sure its worth the trouble.
Powered by blists - more mailing lists