rcu: Upgrade sync_exp_work_done() to smp_mb()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Sat, 20 Apr 2019 08:40:54 +0000 (01:40 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Thu, 13 Jun 2019 22:33:19 +0000 (15:33 -0700)
commit96050c68be33edef18800ad6748f61f81db81a20
tree94532580e0cca9f5d078de4548cf03b2efbbd04a
parent714b6904e23e1c37f262a4cd02b34d0f1863e227
rcu: Upgrade sync_exp_work_done() to smp_mb()

The sync_exp_work_done() function uses smp_mb__before_atomic(), but
there is no obvious atomic in the ensuing code.  The ordering is
absolutely required for grace periods to work correctly, so this
commit upgrades the smp_mb__before_atomic() to smp_mb().

Fixes: 6fba2b3767ea ("rcu: Remove deprecated RCU debugfs tracing code")
Reported-by: Andrea Parri <andrea.parri@amarulasolutions.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/tree_exp.h