aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree_plugin.h
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2011-02-25 14:37:59 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2011-05-06 02:16:58 -0400
commit13491a0ee1ef862b6c842132b6eb9c5e721af5ad (patch)
tree198d4dc1d56c4d6357d93522cc2ff3676cb78021 /kernel/rcutree_plugin.h
parent7e8b4c72344e0d904b0e3fa9fd2eb116f04b3d41 (diff)
rcu: call __rcu_read_unlock() in exit_rcu for tree RCU
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 <laijs@cn.fujitsu.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r--kernel/rcutree_plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
index a21413d0581d..11b27f377b8b 100644
--- a/kernel/rcutree_plugin.h
+++ b/kernel/rcutree_plugin.h
@@ -858,7 +858,7 @@ void exit_rcu(void)
858 if (t->rcu_read_lock_nesting == 0) 858 if (t->rcu_read_lock_nesting == 0)
859 return; 859 return;
860 t->rcu_read_lock_nesting = 1; 860 t->rcu_read_lock_nesting = 1;
861 rcu_read_unlock(); 861 __rcu_read_unlock();
862} 862}
863 863
864#else /* #ifdef CONFIG_TREE_PREEMPT_RCU */ 864#else /* #ifdef CONFIG_TREE_PREEMPT_RCU */