locking/ww_mutex: Abstract out the waiter iteration
authorPeter Zijlstra <peterz@infradead.org>
Sun, 15 Aug 2021 21:28:45 +0000 (23:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 17:04:52 +0000 (19:04 +0200)
commit23d599eb2377404100d0d1508e12b0a2c40b49b1
tree38b975750d093112d83cc60047f094163e243f52
parent5297ccb2c50916c59294a63fae79fe01a7fbb79a
locking/ww_mutex: Abstract out the waiter iteration

Split out the waiter iteration functions so they can be substituted for a
rtmutex based ww_mutex later.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
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.509186185@linutronix.de
kernel/locking/ww_mutex.h