Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277207
b: refs/heads/master
c: 867f236
h: refs/heads/master
i:
  277205: 1f34b5b
  277203: f13d1ce
  277199: 7181335
v: v3
  • Loading branch information
Paul E. McKenney authored and Paul E. McKenney committed Dec 11, 2011
1 parent 9d14747 commit 232d417
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff195cb69ba8d2af9b891be3a26db95fe1999d43
refs/heads/master: 867f236bd12f5091df6dc7cc75f94d7fd982d78a
5 changes: 4 additions & 1 deletion trunk/include/linux/srcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ long srcu_batches_completed(struct srcu_struct *sp);
* this assumes we are in an SRCU read-side critical section unless it can
* prove otherwise.
*
* Checks debug_lockdep_rcu_enabled() to prevent false positives during boot
* and while lockdep is disabled.
*
* Note that if the CPU is in the idle loop from an RCU point of view
* (ie: that we are in the section between rcu_idle_enter() and
* rcu_idle_exit()) then srcu_read_lock_held() returns false even if
Expand All @@ -102,7 +105,7 @@ static inline int srcu_read_lock_held(struct srcu_struct *sp)
if (rcu_is_cpu_idle())
return 0;

if (!debug_locks)
if (!debug_lockdep_rcu_enabled())
return 1;

return lock_is_held(&sp->dep_map);
Expand Down

0 comments on commit 232d417

Please sign in to comment.