EXP qspinlock: debugging
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
diff --git a/kernel/locking/qspinlock.c b/kernel/locking/qspinlock.c
index e0c6e69..82c480f 100644
--- a/kernel/locking/qspinlock.c
+++ b/kernel/locking/qspinlock.c
@@ -304,6 +304,7 @@ static bool queued_spin_lock_slowpath_diags(int val, struct qspinlock *lock)
{
struct qspinlock qval;
+ WARN_ON_ONCE(1);
if (!qwait_diags_select)
return false;
atomic_set(&qval.val, val);
@@ -312,6 +313,7 @@ static bool queued_spin_lock_slowpath_diags(int val, struct qspinlock *lock)
return true;
}
if (qwait_diags_select == 2 && !READ_ONCE(current->qwait_diags_ql)) {
+ WARN_ON_ONCE(1);
current->qwait_diags_val = val;
current->qwait_diags_jiffies = jiffies;
current->qwait_diags_ql = lock;