]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/futex.c
fix misoptimization in futex unqueue_me
[karo-tx-linux.git] / kernel / futex.c
index 5efa2f978032d1f20955c5f99eb24bf0e1051c51..94d7d77780dec9b4ef6bee19a445e73cfa3ba1ac 100644 (file)
@@ -589,6 +589,7 @@ static int unqueue_me(struct futex_q *q)
        /* In the common case we don't take the spinlock, which is nice. */
  retry:
        lock_ptr = q->lock_ptr;
+       barrier();
        if (lock_ptr != 0) {
                spin_lock(lock_ptr);
                /*