|
@@ -111,7 +111,8 @@ extern int debug_lockdep_rcu_enabled(void);
|
|
* this assumes we are in an RCU read-side critical section unless it can
|
|
* this assumes we are in an RCU read-side critical section unless it can
|
|
* prove otherwise.
|
|
* prove otherwise.
|
|
*
|
|
*
|
|
- * Check rcu_scheduler_active to prevent false positives during boot.
|
|
|
|
|
|
+ * Check debug_lockdep_rcu_enabled() to prevent false positives during boot
|
|
|
|
+ * and while lockdep is disabled.
|
|
*/
|
|
*/
|
|
static inline int rcu_read_lock_held(void)
|
|
static inline int rcu_read_lock_held(void)
|
|
{
|
|
{
|
|
@@ -136,7 +137,8 @@ extern int rcu_read_lock_bh_held(void);
|
|
* of preemption (including disabling irqs) counts as an RCU-sched
|
|
* of preemption (including disabling irqs) counts as an RCU-sched
|
|
* read-side critical section.
|
|
* read-side critical section.
|
|
*
|
|
*
|
|
- * Check rcu_scheduler_active to prevent false positives during boot.
|
|
|
|
|
|
+ * Check debug_lockdep_rcu_enabled() to prevent false positives during boot
|
|
|
|
+ * and while lockdep is disabled.
|
|
*/
|
|
*/
|
|
#ifdef CONFIG_PREEMPT
|
|
#ifdef CONFIG_PREEMPT
|
|
static inline int rcu_read_lock_sched_held(void)
|
|
static inline int rcu_read_lock_sched_held(void)
|