summaryrefslogtreecommitdiff
path: root/lib/test_lockup.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-08-16 00:28:36 +0300
committerIngo Molnar <mingo@kernel.org>2021-08-17 20:03:33 +0300
commitebf4c55c1ddbabaea120fe8d48ce25b4f5da93a1 (patch)
tree3cd4d0fe2e68747357d0e16549638cca797a4afd /lib/test_lockup.c
parent4f1893ec8cfb4b17e3b89158a1e3e550a9a9bf3c (diff)
downloadlinux-ebf4c55c1ddbabaea120fe8d48ce25b4f5da93a1.tar.xz
locking/mutex: Make mutex::wait_lock raw
The wait_lock of mutex is really a low level lock. Convert it to a raw_spinlock like the wait_lock of rtmutex. [ mingo: backmerged the test_lockup.c build fix by bigeasy. ] Co-developed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> 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.166863404@linutronix.de
Diffstat (limited to 'lib/test_lockup.c')
-rw-r--r--lib/test_lockup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_lockup.c b/lib/test_lockup.c
index 864554e76973..4d93b02f81bb 100644
--- a/lib/test_lockup.c
+++ b/lib/test_lockup.c
@@ -502,7 +502,7 @@ static int __init test_lockup_init(void)
offsetof(rwlock_t, magic),
RWLOCK_MAGIC) ||
test_magic(lock_mutex_ptr,
- offsetof(struct mutex, wait_lock.rlock.magic),
+ offsetof(struct mutex, wait_lock.magic),
SPINLOCK_MAGIC) ||
test_magic(lock_rwsem_ptr,
offsetof(struct rw_semaphore, wait_lock.magic),