Skip to content

Commit

Permalink
rcu: need barrier() in UP synchronize_sched_expedited()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul E. McKenney authored and Tejun Heo committed May 7, 2010
1 parent cc631fb commit fc390cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -8932,6 +8932,7 @@ struct cgroup_subsys cpuacct_subsys = {

void synchronize_sched_expedited(void)
{
barrier();
}
EXPORT_SYMBOL_GPL(synchronize_sched_expedited);

Expand Down

0 comments on commit fc390cd

Please sign in to comment.