futex: Correct the number of requeued waiters for PI
authorThomas Gleixner <tglx@linutronix.de>
Sun, 15 Aug 2021 21:29:10 +0000 (23:29 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 17:05:46 +0000 (19:05 +0200)
commit59c7ecf1544e1841b5be8847e81bc9842f838e7e
tree943d42e4333b1588a2c6f793cd1c8ba73e6366be
parent8e74633dcefb280f2cefb49b7201d99650243d96
futex: Correct the number of requeued waiters for PI

The accounting is wrong when either the PI sanity check or the
requeue PI operation fails. Adjust it in the failure path.

Will be simplified in the next step.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210815211305.416427548@linutronix.de
kernel/futex.c