Message ID | 20110720132311.GE2400@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index cb33705..2b5f3e1 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h @@ -411,7 +411,11 @@ void __rcu_read_unlock(void) t->rcu_read_lock_nesting = 0; } #ifdef CONFIG_PROVE_LOCKING - WARN_ON_ONCE(ACCESS_ONCE(t->rcu_read_lock_nesting) < 0); + { + int rrln = ACCESS_ONCE(t->rcu_read_lock_nesting); + + WARN_ON_ONCE(rrln < 0 && rrln < INT_MIN / 2); + } #endif /* #ifdef CONFIG_PROVE_LOCKING */ } EXPORT_SYMBOL_GPL(__rcu_read_unlock);