Re: [PATCH v2 1/5] locking/rtmutex: Stop spinning on the owner when the waiter is woken

From: Sebastian Andrzej Siewior

Date: Wed Nov 18 2026 - 13:52:07 EST


On 2026-11-18 12:27:45 [-0500], Mathieu Desnoyers wrote:
> Hi Sebastian,
Hi Mathieu,

> > > I kept the check for TASK_UNINTERRUPTIBLE on the rt_mutex side. A
> > > ww_mutex wound also wakes an uninterruptible waiter, and the ABBA case
> > > of patch 5 needs the spin to stop there.
> >
> > Not sure what is related to. I don't see this in this patch.
> > TASK_UNINTERRUPTIBLE vs TASK_INTERRUPTIBLE would make a difference for
> > signals here.
>
> Sorry, that was unclear. The patch tests no state. You had suggested
> to limit the check to !TASK_UNINTERRUPTIBLE. I did not do that. A
> ww_mutex waiter sleeps in TASK_UNINTERRUPTIBLE, and the wound wakes it.
> That is the ABBA case of patch 5. So the spin must stop for an
> uninterruptible waiter too.

Ah okay, that makes sense. Sorry for the confusion then :).

Sebastian