Dave Jones a09b81
Dave Jones a09b81
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h
Dave Jones a09b81
index 9fbc54a..435c502 100644
Dave Jones a09b81
--- a/include/linux/rcupdate.h
Dave Jones a09b81
+++ b/include/linux/rcupdate.h
Dave Jones a09b81
@@ -454,7 +454,7 @@ static inline notrace void rcu_read_unlock_sched_notrace(void)
Dave Jones a09b81
  * Makes rcu_dereference_check() do the dirty work.
Dave Jones a09b81
  */
Dave Jones a09b81
 #define rcu_dereference_bh(p) \
Dave Jones a09b81
-		rcu_dereference_check(p, rcu_read_lock_bh_held())
Dave Jones a09b81
+		rcu_dereference_check(p, rcu_read_lock_bh_held() || irqs_disabled())
Dave Jones a09b81
 
Dave Jones a09b81
 /**
Dave Jones a09b81
  * rcu_dereference_sched - fetch RCU-protected pointer, checking for RCU-sched
Dave Jones a09b81
Dave Jones a09b81