]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
futex: Move futex exit handling into futex code
authorThomas Gleixner <tglx@linutronix.de>
Wed, 6 Nov 2019 21:55:36 +0000 (22:55 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:47 +0000 (14:21 -0300)
commite891c8f7feb9ce822ff7a45205b679c31e7aba51
treefb6e686dbca42106cc62057bd5a0c82b6a42df17
parent6c4e1847773b7e52bc9f94b49095a9c4c11631cc
futex: Move futex exit handling into futex code

BugLink: https://bugs.launchpad.net/bugs/1855787
commit ba31c1a48538992316cc71ce94fa9cd3e7b427c0 upstream.

The futex exit handling is #ifdeffed into mm_release() which is not pretty
to begin with. But upcoming changes to address futex exit races need to add
more functionality to this exit code.

Split it out into a function, move it into futex code and make the various
futex exit functions static.

Preparatory only and no functional change.

Folded build fix from Borislav.

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.049705556@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/compat.h
include/linux/futex.h
kernel/fork.c
kernel/futex.c