From: Lai Jiangshan Date: Fri, 25 Feb 2011 19:37:59 +0000 (-0800) Subject: rcu: call __rcu_read_unlock() in exit_rcu for tree RCU X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=13491a0ee1ef862b6c842132b6eb9c5e721af5ad;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Paul E. McKenney Reviewed-by: Josh Triplett --- diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index a21413d0581..11b27f377b8 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h @@ -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 */