diff --git a/kernel/futex.c b/kernel/futex.c index dda2049692a23dff47633c7e0394526ff0398289..c2b2e0b83abf520a5a170252e8d56e4659443448 100644 --- a/kernel/futex.c +++ b/kernel/futex.c @@ -948,6 +948,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); /*