Re: [RFC][PATCH] locking/rtmutex: Make sure we wake anything on the wake_q when we release the lock->wait_lock
From: Peter Zijlstra
Date: Fri Dec 13 2024 - 09:00:05 EST
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.