aboutsummaryrefslogtreecommitdiff
path: root/fs/exec.c
diff options
context:
space:
mode:
authorGravatar Thomas Gleixner <tglx@linutronix.de> 2019-11-06 22:55:37 +0100
committerGravatar Thomas Gleixner <tglx@linutronix.de> 2019-11-20 09:40:07 +0100
commit3d4775df0a89240f671861c6ab6e8d59af8e9e41 (patch)
tree6813a938bd225f703d9569f60eea618a82642e31 /fs/exec.c
parentfutex: Move futex exit handling into futex code (diff)
downloadlinux-3d4775df0a89240f671861c6ab6e8d59af8e9e41.tar.gz
linux-3d4775df0a89240f671861c6ab6e8d59af8e9e41.tar.bz2
linux-3d4775df0a89240f671861c6ab6e8d59af8e9e41.zip
futex: Replace PF_EXITPIDONE with a state
The futex exit handling relies on PF_ flags. That's suboptimal as it requires a smp_mb() and an ugly lock/unlock of the exiting tasks pi_lock in the middle of do_exit() to enforce the observability of PF_EXITING in the futex code. Add a futex_state member to task_struct and convert the PF_EXITPIDONE logic over to the new state. The PF_EXITING dependency will be cleaned up in a later step. This prepares for handling various futex exit issues later. 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.149449274@linutronix.de
Diffstat (limited to 'fs/exec.c')
0 files changed, 0 insertions, 0 deletions