]> git.itanic.dy.fi Git - linux-stable/commit
futex: Split futex_mm_release() for exit/exec
authorThomas Gleixner <tglx@linutronix.de>
Wed, 6 Nov 2019 21:55:39 +0000 (22:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Jan 2021 12:32:11 +0000 (13:32 +0100)
commit1dd589346a127db6aa14889ef4099366dcab3a96
treec0d516e8483d88d19c66874e1821c8444a489033
parent9425476fb17a29b9f1c564321ae4b80129534c57
futex: Split futex_mm_release() for exit/exec

commit 150d71584b12809144b8145b817e83b81158ae5f upstream

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