Re: Regression on linux-next (next-20260324 )

From: John Stultz

Date: Tue Apr 21 2026 - 13:32:30 EST


On Tue, Apr 21, 2026 at 8:48 AM K Prateek Nayak <kprateek.nayak@xxxxxxx> wrote:
> On 4/21/2026 8:07 PM, Peter Zijlstra wrote:
> >> First hunk orders the first_waiter if we are attaching to the
> >> tail of current first_waiter which would have previously ended
> >> up next to list_head.
> >
> > This is the case in __ww_mutex_add_waiter() where pos == first, right?
> >
> > Argh, I see... yes. Perhaps something like the below though?
>
> Neat! Thank you for cleaning it up. Those, along with the changes in
> ww_mutex.h fix the issue of ww-mutex_test hanging in my case. Feel free
> to include:
>
> Tested-by: K Prateek Nayak <kprateek.nayak@xxxxxxx>

Same. With Peter's change and K Prateek's ww_mutex.h change it looks
like it's working for me.

Thank you both!
Tested-by: John Stultz <jstultz@xxxxxxxxxx>

thanks
-john