]> www.infradead.org Git - users/jedix/linux-maple.git/commit
locking/ww_mutex: Fix ww_mutex dummy lockdep map selftest warnings
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 27 Nov 2024 08:54:30 +0000 (09:54 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 2 Dec 2024 11:16:57 +0000 (12:16 +0100)
commit0302d2fd6efb0c386e521df0134eb2679a9a138f
treeb2a6020ac8bc863ffe37891fb028221d72002c67
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
locking/ww_mutex: Fix ww_mutex dummy lockdep map selftest warnings

The below commit introduces a dummy lockdep map, but didn't get
the initialization quite right (it should mimic the initialization
of the real ww_mutex lockdep maps). It also introduced a separate
locking api selftest failure. Fix these.

Closes: https://lore.kernel.org/lkml/Zw19sMtnKdyOVQoh@boqun-archlinux/
Fixes: 823a566221a5 ("locking/ww_mutex: Adjust to lockdep nest_lock requirements")
Reported-by: Boqun Feng <boqun.feng@gmail.com>
Suggested-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20241127085430.3045-1-thomas.hellstrom@linux.intel.com
include/linux/ww_mutex.h
lib/locking-selftest.c