]> git.karo-electronics.de Git - linux-beck.git/commit
rcu: Move smp_mb() from rcu_seq_snap() to rcu_exp_gp_seq_snap()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 29 Sep 2015 19:34:40 +0000 (12:34 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 4 Dec 2015 20:26:51 +0000 (12:26 -0800)
commit886ef5a18a4a771d5fdc0e23ae9373bb35d529e7
treecbecef5a7f6313614c0b8617411a764ab24c91ab
parent1de6e56ddc043437d335ee0455a1b34b73510c91
rcu: Move smp_mb() from rcu_seq_snap() to rcu_exp_gp_seq_snap()

The memory barrier in rcu_seq_snap() is needed only for grace periods,
so this commit moves it to the grace-period-oriented wrapper
rcu_exp_gp_seq_snap().

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c