Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kernel/futex: Explicitly document pi_lock for pi_state owner fixup

This seems to belong in the serialization and lifetime rules section.
pi_state_update_owner() will take the pi_mutex's owner's pi_lock to
do whatever fixup, successful or not.

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-4-dave@stgolabs.net

authored by

Davidlohr Bueso and committed by
Thomas Gleixner
c2e4bfe0 a3f2428d

+1
+1
kernel/futex.c
··· 981 981 * p->pi_lock: 982 982 * 983 983 * p->pi_state_list -> pi_state->list, relation 984 + * pi_mutex->owner -> pi_state->owner, relation 984 985 * 985 986 * pi_state->refcount: 986 987 *