futex: fixup unlocked requeue pi case
authorDarren Hart <dvhltc@us.ibm.com>
Wed, 8 Apr 2009 06:23:50 +0000 (23:23 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 8 Apr 2009 10:58:20 +0000 (12:58 +0200)
Thomas's testing caught a problem when the requeue target futex is
unowned and multiple tasks are requeued to it. This patch ensures
the FUTEX_WAITERS bit gets set if futex_requeue() will requeue one
or more tasks in addition to the one acquiring the lock.

Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

No differences found