sched: correctly place paranioa memory barriers in synchronize_sched_expedited()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 6 May 2010 16:49:21 +0000 (18:49 +0200)
committerTejun Heo <tj@kernel.org>
Thu, 6 May 2010 16:49:21 +0000 (18:49 +0200)
commitcc631fb732b8ccd6a0cc45557475ea09b0c21a68
tree37e8c84f227a21d628a9d3a96dbbf5fedd506db1
parent94458d5ecb3da844823cc191e73e5c5ead98a464
sched: correctly place paranioa memory barriers in synchronize_sched_expedited()

The memory barriers must be in the SMP case, not in the !SMP case.
Also add a barrier after the atomic_inc() in order to ensure that
other CPUs see post-synchronize_sched_expedited() actions as following
the expedited grace period.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched.c