Commit ba74f4d7e5125d04d453b4af69c53c533e6feb80

Authored by Lai Jiangshan
Committed by Paul E. McKenney
1 parent cb600d2f83

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 <laijs@cn.fujitsu.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

kernel/rcutiny_plugin.h
... ... @@ -852,7 +852,7 @@
852 852 if (t->rcu_read_lock_nesting == 0)
853 853 return;
854 854 t->rcu_read_lock_nesting = 1;
855   - rcu_read_unlock();
  855 + __rcu_read_unlock();
856 856 }
857 857  
858 858 #else /* #ifdef CONFIG_TINY_PREEMPT_RCU */