futex: Sanitize exit state handling
authorThomas Gleixner <tglx@linutronix.de>
Wed, 6 Nov 2019 21:55:42 +0000 (22:55 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 20 Nov 2019 08:40:09 +0000 (09:40 +0100)
commit4a8e991b91aca9e20705d434677ac013974e0e30
tree3d829eff03ee942cfcf4af2f3bb324e500732742
parent18f694385c4fd77a09851fd301236746ca83f3cb
futex: Sanitize exit state handling

Instead of having a smp_mb() and an empty lock/unlock of task::pi_lock move
the state setting into to the lock section.

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.645603214@linutronix.de
kernel/futex.c