summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mac53c94.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2018-11-29 14:44:49 +0100
committerIngo Molnar <mingo@kernel.org>2019-01-21 11:15:38 +0100
commitb061c38bef43406df8e73c5be06cbfacad5ee6ad (patch)
treec031de9bb7878fd8a24cc0fb339151044e2fae12 /drivers/scsi/mac53c94.h
parentsched/wake_q: Fix wakeup ordering for wake_q (diff)
downloadlinux-b061c38bef43406df8e73c5be06cbfacad5ee6ad.tar.xz
linux-b061c38bef43406df8e73c5be06cbfacad5ee6ad.zip
futex: Fix (possible) missed wakeup
We must not rely on wake_q_add() to delay the wakeup; in particular commit: 1d0dcb3ad9d3 ("futex: Implement lockless wakeups") moved wake_q_add() before smp_store_release(&q->lock_ptr, NULL), which could result in futex_wait() waking before observing ->lock_ptr == NULL and going back to sleep again. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Fixes: 1d0dcb3ad9d3 ("futex: Implement lockless wakeups") Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/scsi/mac53c94.h')
0 files changed, 0 insertions, 0 deletions