]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
futex: Provide and use pi_state_update_owner()
authorLee Jones <lee.jones@linaro.org>
Thu, 4 Feb 2021 17:28:59 +0000 (17:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:07:25 +0000 (09:07 +0100)
commit34c8e1c2c025b8c3eefb43fbcec2699841f0d153
treeb82e97aa318c5e07211a41636a9152efb0b2f8e4
parent3edf5f2ad6652c4e3e6c1eaf4d64be7cf516b1b5
futex: Provide and use pi_state_update_owner()

From: Thomas Gleixner <tglx@linutronix.de>

[ 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