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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Gleixner
Date: Saturday, May 24, 2008 - 1:55 am

On Thu, 22 May 2008, Daniel Walker wrote:


This is a solution looking for a problem. 

Normal futexes have no ordering guarantees at all. There is no
mechanism to prevent lock stealing from lower priority tasks. So why
should we care about the once a year case, where a sleepers priority
is modified ?

If you need ordering guarantees then use PI futexes.


The patch corrects a non issue and introduces lock order issues:


vs.

{
....
        hb = queue_lock(&q);


There are more issues vs. pi futexes as well. The simple case of
futex_wait() vs. futex_adjust_waiters will just upset lockdep, but
there are real dealocks vs. unqueue_me_pi waiting.

Thanks,
	tglx

--
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)