]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/kthread.c
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik...
[karo-tx-linux.git] / kernel / kthread.c
index e377e2244103b28e383e7fc4c4bee120427c1e68..f50f174e92da1d6414c127fb0b8ee7567faa26dd 100644 (file)
@@ -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;