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: Sat Dec 14 2024 - 13:46:46 EST
On Fri, Dec 13, 2024 at 06:39:45PM -0800, John Stultz wrote:
> On Fri, Dec 13, 2024 at 4:46 AM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> I think all of the calls are tied to the unlock (the one you quoted
> earlier was removed with 82f9cc094975240), so would something like a
> special unlock be reasonable:
> raw_spin_unlock_irq_and_wake(&lock->wait_lock, wake_q)
> ?
Ha, that's what I started with :-) Then found there's two irq_restore()
variants for raisins and it all turned to shit.