futex: fixup unlocked requeue pi case
commitbab5bc9e857638880facef76e4b4c3fa807f8c73
authorDarren Hart <dvhltc@us.ibm.com>
Wed, 8 Apr 2009 06:23:50 +0000 (7 23:23 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 8 Apr 2009 10:58:20 +0000 (8 12:58 +0200)
tree8129a3fc18f770021bfe202900ecc2cb144d18c7
parent52400ba946759af28442dee6265c5c0180ac7122
futex: fixup unlocked requeue pi case

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>
kernel/futex.c