aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/rcupdate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h
index fcea332a8424..c84373626336 100644
--- a/include/linux/rcupdate.h
+++ b/include/linux/rcupdate.h
@@ -166,7 +166,7 @@ static inline int rcu_read_lock_bh_held(void)
166 166
167static inline int rcu_read_lock_sched_held(void) 167static inline int rcu_read_lock_sched_held(void)
168{ 168{
169 return preempt_count() != 0; 169 return preempt_count() != 0 || !rcu_scheduler_active;
170} 170}
171 171
172#endif /* #else #ifdef CONFIG_DEBUG_LOCK_ALLOC */ 172#endif /* #else #ifdef CONFIG_DEBUG_LOCK_ALLOC */