locking/ww_mutex: Abstract out internal lock accesses
authorThomas Gleixner <tglx@linutronix.de>
Sun, 15 Aug 2021 21:28:52 +0000 (23:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 17:05:03 +0000 (19:05 +0200)
commit653a5b0bd9b405db999d5f4bfe08d34691e2c55a
tree2cfe903f8230c8f0112b10b348326af0456add18
parentbdb189148ded4ffa826a1387074c795fda43b3ba
locking/ww_mutex: Abstract out internal lock accesses

Accessing the internal wait_lock of mutex and rtmutex is slightly
different. Provide helper functions for that.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210815211304.734635961@linutronix.de
include/linux/ww_mutex.h
kernel/locking/ww_mutex.h