futex: Provide and use pi_state_update_owner()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 3 Feb 2021 13:45:35 +0000 (13:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:09:24 +0000 (09:09 +0100)
commit76bc0eca09e1f44f3c40cc4f69dbfe446458aaa1
tree01b893a1d6562e47bca4ec4642f10368a8b19315
parent083895e36422882ac5bb393337b6f7cb1a5f046d
futex: Provide and use pi_state_update_owner()

[ Upstream commit c5cade200ab9a2a3be9e7f32a752c8d86b502ec7 ]

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
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/futex.c