Skip to content

Commit

Permalink
rcu: call __rcu_read_unlock() in exit_rcu for tree RCU
Browse files Browse the repository at this point in the history
Using __rcu_read_lock() in place of rcu_read_lock() leaves any debug
state as it really should be, namely with the lock still held.

Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
  • Loading branch information
Lai Jiangshan authored and paulmck committed May 6, 2011
1 parent 7e8b4c7 commit 13491a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/rcutree_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ void exit_rcu(void)
if (t->rcu_read_lock_nesting == 0)
return;
t->rcu_read_lock_nesting = 1;
rcu_read_unlock();
__rcu_read_unlock();
}

#else /* #ifdef CONFIG_TREE_PREEMPT_RCU */
Expand Down

0 comments on commit 13491a0

Please sign in to comment.