diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2021-02-26 18:50:29 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-03-11 19:19:17 +0100 |
commit | c2e4bfe0eef313eeb1c4c9d921be7a9d91d5d71a (patch) | |
tree | 39864f3e6cf8651e769a205e43d6598accce6970 /kernel/futex.c | |
parent | kernel/futex: Move hb unlock out of unqueue_me_pi() (diff) | |
download | linux-c2e4bfe0eef313eeb1c4c9d921be7a9d91d5d71a.tar.xz linux-c2e4bfe0eef313eeb1c4c9d921be7a9d91d5d71a.zip |
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
Diffstat (limited to 'kernel/futex.c')
-rw-r--r-- | kernel/futex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/futex.c b/kernel/futex.c index dcd6132485e1..475055715371 100644 --- a/kernel/futex.c +++ b/kernel/futex.c @@ -981,6 +981,7 @@ static inline void exit_pi_state_list(struct task_struct *curr) { } * p->pi_lock: * * p->pi_state_list -> pi_state->list, relation + * pi_mutex->owner -> pi_state->owner, relation * * pi_state->refcount: * |