rcu: Simplify _rcu_barrier() processing
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sat, 27 Jul 2013 03:47:42 +0000 (20:47 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 20 Aug 2013 18:45:50 +0000 (11:45 -0700)
commit458fb381eacdd23366cfa2fbdf5a467848683e3a
tree2e99312defa53ba0576e303021a0a2bf62b664b8
parent5361471437a97cf493c2aa7d881bbedc9c248415
rcu: Simplify _rcu_barrier() processing

This commit drops an unneeded ACCESS_ONCE() and simplifies an "our work
is done" check in _rcu_barrier().  This applies feedback from Linus
(https://lkml.org/lkml/2013/7/26/777) that he gave to similar code
in an unrelated patch.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
[ paulmck: Fix comment to match code, reported by Lai Jiangshan. ]
kernel/rcutree.c