Re: [PATCH 3/3] futex: fix miss ordered wakeups

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arjan van de Ven
Date: Saturday, May 24, 2008 - 1:34 pm

On Sat, 24 May 2008 12:19:34 -0700
Daniel Walker <dwalker@mvista.com> wrote:


nope. Don't look at the release path... look at the acquire path.
If a thread sees the futex is free, it'll take it, without even going
to the kernel at all. So you have the situation where the kernel spends
a lot of time finding the "perfect" candidate to wake up, but kaboom
some other thread just happens to try to get the mutex between the
wakeup and the acquire of the wakee.. and just "steal" the lock.


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

Messages in current thread:
[PATCH 3/3] futex: fix miss ordered wakeups, Daniel Walker, (Thu May 22, 12:00 am)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Ulrich Drepper, (Thu May 22, 10:02 pm)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Daniel Walker, (Thu May 22, 10:15 pm)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Ulrich Drepper, (Thu May 22, 10:24 pm)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Daniel Walker, (Thu May 22, 10:36 pm)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Ulrich Drepper, (Fri May 23, 8:38 pm)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Thomas Gleixner, (Sat May 24, 1:55 am)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Daniel Walker, (Sat May 24, 8:32 am)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Thomas Gleixner, (Sat May 24, 10:03 am)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Daniel Walker, (Sat May 24, 10:24 am)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Thomas Gleixner, (Sat May 24, 11:35 am)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Daniel Walker, (Sat May 24, 12:19 pm)
Re: [PATCH 3/3] futex: fix miss ordered wakeups, Arjan van de Ven, (Sat May 24, 1:34 pm)