futex: Add mutex around futex exit
authorThomas Gleixner <tglx@linutronix.de>
Wed, 6 Nov 2019 21:55:44 +0000 (22:55 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 20 Nov 2019 08:40:10 +0000 (09:40 +0100)
commit3f186d974826847a07bc7964d79ec4eded475ad9
tree99bdae5f1dedc0f361465fae87165eea0598eab4
parentaf8cbda2cfcaa5515d61ec500498d46e9a8247e2
futex: Add mutex around futex exit

The mutex will be used in subsequent changes to replace the busy looping of
a waiter when the futex owner is currently executing the exit cleanup to
prevent a potential live lock.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20191106224556.845798895@linutronix.de
include/linux/futex.h
include/linux/sched.h
kernel/futex.c