From: Lai Jiangshan Date: Mon, 10 Jan 2011 02:09:51 +0000 (-0800) Subject: rcu: call __rcu_read_unlock() in exit_rcu for tiny RCU X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba74f4d7e5125d04d453b4af69c53c533e6feb80;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git rcu: call __rcu_read_unlock() in exit_rcu for tiny 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 Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcutiny_plugin.h b/kernel/rcutiny_plugin.h index 015abaea962a..3cb8e362e883 100644 --- a/kernel/rcutiny_plugin.h +++ b/kernel/rcutiny_plugin.h @@ -852,7 +852,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_TINY_PREEMPT_RCU */