diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-05-06 11:42:52 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-05-07 07:23:21 +0200 |
commit | fc390cde362309f6892bb719194f242c466a978b (patch) | |
tree | 07bfb72fb4eff28cc515a0ff5b2d1571db4f4b69 /kernel | |
parent | cc631fb732b8ccd6a0cc45557475ea09b0c21a68 (diff) | |
download | linux-fc390cde362309f6892bb719194f242c466a978b.tar.gz linux-fc390cde362309f6892bb719194f242c466a978b.tar.bz2 linux-fc390cde362309f6892bb719194f242c466a978b.zip |
rcu: need barrier() in UP synchronize_sched_expedited()
If synchronize_sched_expedited() is ever to be called from within
kernel/sched.c in a !SMP PREEMPT kernel, the !SMP implementation needs
a barrier().
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 155a16d52146..fbaf3128d010 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -8932,6 +8932,7 @@ struct cgroup_subsys cpuacct_subsys = { void synchronize_sched_expedited(void) { + barrier(); } EXPORT_SYMBOL_GPL(synchronize_sched_expedited); |