]> git.ipfire.org Git - thirdparty/linux.git/commit
locking/mutex: Clarify that mutex_unlock(), and most other sleeping locks, can still...
authorIngo Molnar <mingo@kernel.org>
Mon, 8 Jan 2024 08:31:16 +0000 (09:31 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 8 Jan 2024 08:55:31 +0000 (09:55 +0100)
commit2b9d9e0a9ba0e24cb9c78336481f0ed8b2bc1ff2
tree19efa195a910151f5ba67a730e9534c700a9ad5c
parent67a1723344cfe05430977483d6d3c7a999480143
locking/mutex: Clarify that mutex_unlock(), and most other sleeping locks, can still use the lock object after it's unlocked

Clarify the mutex lock lifetime rules a bit more.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Jann Horn <jannh@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20231201121808.GL3818@noisy.programming.kicks-ass.net
Documentation/locking/mutex-design.rst