]> git.itanic.dy.fi Git - linux-stable/commit
futex: Move futex exit handling into futex code
authorThomas Gleixner <tglx@linutronix.de>
Mon, 1 Feb 2021 10:01:33 +0000 (10:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2021 22:19:49 +0000 (23:19 +0100)
commit25f319bbcc81f1363275eb5007b5f204b55ba834
tree05b0fd5c0e94eaf28808c7f41268d7f863e5b956
parentbdb116cd8adcee533cb11d86ddb3aebcca548bd9
futex: Move futex exit handling into futex code

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: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/compat.h
include/linux/futex.h
kernel/fork.c
kernel/futex.c