futex: Split futex_mm_release() for exit/exec
authorThomas Gleixner <tglx@linutronix.de>
Wed, 6 Nov 2019 21:55:39 +0000 (22:55 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 20 Nov 2019 08:40:08 +0000 (09:40 +0100)
commit150d71584b12809144b8145b817e83b81158ae5f
treee34f2d777472f9dbe37c253431f33c81e654b3af
parent4610ba7ad877fafc0a25a30c6c82015304120426
futex: Split futex_mm_release() for exit/exec

To allow separate handling of the futex exit state in the futex exit code
for exit and exec, split futex_mm_release() into two functions and invoke
them from the corresponding exit/exec_mm_release() callsites.

Preparatory only, no functional change.

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.332094221@linutronix.de
include/linux/futex.h
kernel/fork.c
kernel/futex.c