kernel/futex: Make futex_wait_requeue_pi() only call fixup_owner()
authorDavidlohr Bueso <dave@stgolabs.net>
Fri, 26 Feb 2021 17:50:27 +0000 (09:50 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Mar 2021 18:19:17 +0000 (19:19 +0100)
commita1565aa4699847febfdfd6af3bf06ca17a9e16af
treed18132fa357e9480d4a84c52f052d975b73551a3
parent9a4b99fce659c03699f1cb5003ebe7c57c084d49
kernel/futex: Make futex_wait_requeue_pi() only call fixup_owner()

A small cleanup that allows for fixup_pi_state_owner() only to be called
from fixup_owner(), and make requeue_pi uniformly call fixup_owner()
regardless of the state in which the fixup is actually needed. Of course
this makes the caller's first pi_state->owner != current check redundant,
but that should't really matter.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210226175029.50335-2-dave@stgolabs.net
kernel/futex.c