]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Jan 2021 12:32:11 +0000 (13:32 +0100)
commit3fe0ed7bd7329e28aca7cdaf7353c6d4778b3d41
tree3ec3e10f4d6824f1aa591ccf55616a451d40a82b
parent08b227d9f380aff229fe7eb3e43c0d90ac14ec38
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>
include/linux/compat.h
include/linux/futex.h
kernel/fork.c
kernel/futex.c