[PATCH 2/2] powerpc: Add smp_mb()s to arch_spin_unlock_wait()

2014-09-10 Thread Michael Ellerman
Backported from 78e05b1421fa upstream, for stable 3.14 and 3.16. Similar to the previous commit which described why we need to add a barrier to arch_spin_is_locked(), we have a similar problem with spin_unlock_wait(). We need a barrier on entry to ensure any spinlock we have previously taken is v

[PATCH 2/2] powerpc: Add smp_mb()s to arch_spin_unlock_wait()

2014-08-06 Thread Michael Ellerman
Similar to the previous commit which described why we need to add a barrier to arch_spin_is_locked(), we have a similar problem with spin_unlock_wait(). We need a barrier on entry to ensure any spinlock we have previously taken is visibly locked prior to the load of lock->slock. It's also not cle