OSDN Git Service

futex: Provide and use pi_state_update_owner()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 19 Jan 2021 14:21:35 +0000 (15:21 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 26 Jan 2021 14:10:58 +0000 (15:10 +0100)
commitc5cade200ab9a2a3be9e7f32a752c8d86b502ec7
treead7da0d2ca9318489115f4ad6b1f1461b145d1ff
parent04b79c55201f02ffd675e1231d731365e335c307
futex: Provide and use pi_state_update_owner()

Updating pi_state::owner is done at several places with the same
code. Provide a function for it and use that at the obvious places.

This is also a preparation for a bug fix to avoid yet another copy of the
same code or alternatively introducing a completely unpenetratable mess of
gotos.

Originally-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org
kernel/futex.c