]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
futex: Provide and use pi_state_update_owner()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 19 Jan 2021 14:21:35 +0000 (15:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Jan 2021 12:55:17 +0000 (13:55 +0100)
commit5b2c5a9561c24f3bcdcb85bb897bdc3aa3375c49
treeecb8b88cee37fa9e94fd16b2bdb69d730fa1c310
parent5ede8ee2cb16f4dd066a37b38ad46576dbf20d45
futex: Provide and use pi_state_update_owner()

commit c5cade200ab9a2a3be9e7f32a752c8d86b502ec7 upstream

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/futex.c