X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Fkthread.c;h=f50f174e92da1d6414c127fb0b8ee7567faa26dd;hb=e2244ec2efa4ee1edf391d0001d314933e2b2974;hp=e377e2244103b28e383e7fc4c4bee120427c1e68;hpb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2;p=~andy%2Flinux diff --git a/kernel/kthread.c b/kernel/kthread.c index e377e224410..f50f174e92d 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -174,7 +174,7 @@ int kthread_stop(struct task_struct *k) /* Must init completion *before* thread sees kthread_stop_info.k */ init_completion(&kthread_stop_info.done); - wmb(); + smp_wmb(); /* Now set kthread_should_stop() to true, and wake it up. */ kthread_stop_info.k = k;