futex: Use smp_store_release() in mark_wake_futex()
authorPeter Zijlstra <peterz@infradead.org>
Wed, 22 Mar 2017 10:35:49 +0000 (11:35 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 23 Mar 2017 18:10:06 +0000 (19:10 +0100)
commit1b367ece0d7e696cab1c8501bab282cc6a538b3f
treeccbcb4ec20dc4570912352533738458a75b73ff2
parent499f5aca2cdd5e958b27e2655e7e7f82524f46b1
futex: Use smp_store_release() in mark_wake_futex()

Since the futex_q can dissapear the instruction after assigning NULL,
this really should be a RELEASE barrier. That stops loads from hitting
dead memory too.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: juri.lelli@arm.com
Cc: bigeasy@linutronix.de
Cc: xlpang@redhat.com
Cc: rostedt@goodmis.org
Cc: mathieu.desnoyers@efficios.com
Cc: jdesfossez@efficios.com
Cc: dvhart@infradead.org
Cc: bristot@redhat.com
Link: http://lkml.kernel.org/r/20170322104151.604296452@infradead.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/futex.c