[PATCH] rcu: call __rcu_read_unlock() in exit_rcu()

Previous thread: [tip:perf/core] perf test: Add test for counting open syscalls by tip-bot for Arnaldo Carvalho de Melo on Tuesday, January 4, 2011 - 1:26 am. (1 message)

Next thread: [PATCH] rcu: remove SPARSE_RCU_POINTER by Lai Jiangshan on Tuesday, January 4, 2011 - 1:43 am. (3 messages)
From: Lai Jiangshan
Date: Tuesday, January 4, 2011 - 1:32 am

rcu_read_unlock() is a wrapper of many things:
	the core __rcu_read_unlock(), debugs...etc.

It is better that we only calls the core __rcu_read_unlock() here.

signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
index a363871..94035a0 100644
--- a/kernel/rcutree_plugin.h
+++ b/kernel/rcutree_plugin.h
@@ -802,7 +802,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 */
--

Previous thread: [tip:perf/core] perf test: Add test for counting open syscalls by tip-bot for Arnaldo Carvalho de Melo on Tuesday, January 4, 2011 - 1:26 am. (1 message)

Next thread: [PATCH] rcu: remove SPARSE_RCU_POINTER by Lai Jiangshan on Tuesday, January 4, 2011 - 1:43 am. (3 messages)