Re: [RFC][PATCH] muptiple bugs in PI futexes

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alexey Kuznetsov <kuznet@...>
Cc: Ingo Molnar <mingo@...>, <linux-kernel@...>, Andrew Morton <akpm@...>, Ulrich Drepper <drepper@...>
Date: Tuesday, June 5, 2007 - 2:48 pm

On Tue, 2007-06-05 at 21:39 +0400, Alexey Kuznetsov wrote:

Hmm, right.


Ok, handle_futex_death() is punching the OWNER_DIED bit into the futex
without the hash bucket lock. We might as well grab the hash bucket lock
right there to avoid this. I look for a sane solution.


Sorry, I was not clear here: not the user space lock, the rtmutex must
be held or a deadlock situation against another rtmutex must be
detected. There is no way that the exiting code assigns the owner ship
of the rtmutex. It solely calls rtmutex_unlock() which makes the highest
priority waiter the _PENDING_ owner, which means the pending owner needs
to acquire it for real. 


My largest box is a 4 way and it runs since hours in a while true loop.


I fix up some things in the code first and then I'll add a couple of
debugs to nail this EDEADLK problem.

	tglx


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH] muptiple bugs in PI futexes, Alexey Kuznetsov, (Mon May 7, 10:43 am)
Re: [RFC][PATCH] muptiple bugs in PI futexes, Ingo Molnar, (Wed May 23, 3:26 am)
Re: [RFC][PATCH] muptiple bugs in PI futexes, Alexey Kuznetsov, (Wed May 23, 7:51 am)
Re: [RFC][PATCH] muptiple bugs in PI futexes, Thomas Gleixner, (Tue Jun 5, 12:25 pm)
Re: [RFC][PATCH] muptiple bugs in PI futexes, Alexey Kuznetsov, (Tue Jun 5, 1:39 pm)
Re: [RFC][PATCH] muptiple bugs in PI futexes, Thomas Gleixner, (Tue Jun 5, 2:48 pm)
Re: [RFC][PATCH] muptiple bugs in PI futexes, Thomas Gleixner, (Tue Jun 5, 3:15 pm)
Re: [RFC][PATCH] muptiple bugs in PI futexes, Alexey Kuznetsov, (Tue Jun 5, 5:00 pm)
Re: [RFC][PATCH] muptiple bugs in PI futexes, Thomas Gleixner, (Tue Jun 5, 5:13 pm)