diff options
Diffstat (limited to 'kernel/rcu/tree.c')
| -rw-r--r-- | kernel/rcu/tree.c | 28 | 
1 files changed, 14 insertions, 14 deletions
| diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index cb64d7e13d24..0a73d26357a2 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -649,12 +649,12 @@ static void rcu_eqs_enter_common(long long oldval, bool user)  	 * It is illegal to enter an extended quiescent state while  	 * in an RCU read-side critical section.  	 */ -	rcu_lockdep_assert(!lock_is_held(&rcu_lock_map), -			   "Illegal idle entry in RCU read-side critical section."); -	rcu_lockdep_assert(!lock_is_held(&rcu_bh_lock_map), -			   "Illegal idle entry in RCU-bh read-side critical section."); -	rcu_lockdep_assert(!lock_is_held(&rcu_sched_lock_map), -			   "Illegal idle entry in RCU-sched read-side critical section."); +	RCU_LOCKDEP_WARN(lock_is_held(&rcu_lock_map), +			 "Illegal idle entry in RCU read-side critical section."); +	RCU_LOCKDEP_WARN(lock_is_held(&rcu_bh_lock_map), +			 "Illegal idle entry in RCU-bh read-side critical section."); +	RCU_LOCKDEP_WARN(lock_is_held(&rcu_sched_lock_map), +			 "Illegal idle entry in RCU-sched read-side critical section.");  }  /* @@ -3161,10 +3161,10 @@ static inline int rcu_blocking_is_gp(void)   */  void synchronize_sched(void)  { -	rcu_lockdep_assert(!lock_is_held(&rcu_bh_lock_map) && -			   !lock_is_held(&rcu_lock_map) && -			   !lock_is_held(&rcu_sched_lock_map), -			   "Illegal synchronize_sched() in RCU-sched read-side critical section"); +	RCU_LOCKDEP_WARN(lock_is_held(&rcu_bh_lock_map) || +			 lock_is_held(&rcu_lock_map) || +			 lock_is_held(&rcu_sched_lock_map), +			 "Illegal synchronize_sched() in RCU-sched read-side critical section");  	if (rcu_blocking_is_gp())  		return;  	if (rcu_gp_is_expedited()) @@ -3188,10 +3188,10 @@ EXPORT_SYMBOL_GPL(synchronize_sched);   */  void synchronize_rcu_bh(void)  { -	rcu_lockdep_assert(!lock_is_held(&rcu_bh_lock_map) && -			   !lock_is_held(&rcu_lock_map) && -			   !lock_is_held(&rcu_sched_lock_map), -			   "Illegal synchronize_rcu_bh() in RCU-bh read-side critical section"); +	RCU_LOCKDEP_WARN(lock_is_held(&rcu_bh_lock_map) || +			 lock_is_held(&rcu_lock_map) || +			 lock_is_held(&rcu_sched_lock_map), +			 "Illegal synchronize_rcu_bh() in RCU-bh read-side critical section");  	if (rcu_blocking_is_gp())  		return;  	if (rcu_gp_is_expedited()) | 
