Re: [PATCH] [RESEND 2] Take over futex of dead task only if FUTEX_WAITERSis not set

From: Darren Hart
Date: Thu Oct 25 2012 - 04:19:21 EST




On 10/25/2012 01:14 AM, Thomas Gleixner wrote:
> On Wed, 24 Oct 2012, Darren Hart wrote:
>> On 10/23/2012 01:29 PM, Thomas Gleixner wrote:

> Nah. I'm just too paranoid to apply any futex patch w/o understanding
> the root cause of it. Darn, if I only could remember how that stale
> waiters bit issue got inflicted ....

Stale waiters happens in userspace for non-pi mutexes and there we make
one extra FUTEX_WAKE syscall just in case. The futex value policy is much
more rigid with PI obviously, so I wasn't aware this could happen there.

--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/