aboutsummaryrefslogtreecommitdiff
path: root/kernel/locking/spinlock_rt.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/locking/spinlock_rt.c')
-rw-r--r--kernel/locking/spinlock_rt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/locking/spinlock_rt.c b/kernel/locking/spinlock_rt.c
index 842037b2ba54..38e292454fcc 100644
--- a/kernel/locking/spinlock_rt.c
+++ b/kernel/locking/spinlock_rt.c
@@ -37,6 +37,8 @@
static __always_inline void rtlock_lock(struct rt_mutex_base *rtm)
{
+ lockdep_assert(!current->pi_blocked_on);
+
if (unlikely(!rt_mutex_cmpxchg_acquire(rtm, NULL, current)))
rtlock_slowlock(rtm);
}