|
@@ -304,6 +304,9 @@ void __rcu_read_unlock(void)
|
|
if (--ACCESS_ONCE(t->rcu_read_lock_nesting) == 0 &&
|
|
if (--ACCESS_ONCE(t->rcu_read_lock_nesting) == 0 &&
|
|
unlikely(ACCESS_ONCE(t->rcu_read_unlock_special)))
|
|
unlikely(ACCESS_ONCE(t->rcu_read_unlock_special)))
|
|
rcu_read_unlock_special(t);
|
|
rcu_read_unlock_special(t);
|
|
|
|
+#ifdef CONFIG_PROVE_LOCKING
|
|
|
|
+ WARN_ON_ONCE(ACCESS_ONCE(t->rcu_read_lock_nesting) < 0);
|
|
|
|
+#endif /* #ifdef CONFIG_PROVE_LOCKING */
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(__rcu_read_unlock);
|
|
EXPORT_SYMBOL_GPL(__rcu_read_unlock);
|
|
|
|
|