]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
futex: Add mutex around futex exit
authorThomas Gleixner <tglx@linutronix.de>
Wed, 6 Nov 2019 21:55:44 +0000 (22:55 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:48 +0000 (14:21 -0300)
commitaf8234815c79b52638707efef09450a04159ba07
tree3c8bab302e58c959c0a9243556f00d39bf9540e4
parent7db3796fcfca1aeaf6603e7c104cda862d798389
futex: Add mutex around futex exit

BugLink: https://bugs.launchpad.net/bugs/1855787
commit 3f186d974826847a07bc7964d79ec4eded475ad9 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
include/linux/futex.h
include/linux/sched.h
kernel/futex.c