]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9edddbac7749642c8232ab611af6d56de33d81d5
tree943d42e4333b1588a2c6f793cd1c8ba73e6366be
parent217e67e37d7cb91dac79cfd5ebe5bec4704da591
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