[PATCH 2/4 V4] spinlock.h: Move smp_mb__after_unlock_lock to spinlock.h

2016-08-29 Thread Manfred Spraul
v3: If smp_mb__after_unlock_lock() is in barrier.h, then for arm64, kernel/rcu/tree.c doesn't compile because barrier.h is not included in kernel/rcu/tree.c (v2 was: add example from Paul, something that can happen on real HW) spin_unlock() + spin_lock() together do not form a full memory

[PATCH 2/4 V4] spinlock.h: Move smp_mb__after_unlock_lock to spinlock.h

2016-08-29 Thread Manfred Spraul
v3: If smp_mb__after_unlock_lock() is in barrier.h, then for arm64, kernel/rcu/tree.c doesn't compile because barrier.h is not included in kernel/rcu/tree.c (v2 was: add example from Paul, something that can happen on real HW) spin_unlock() + spin_lock() together do not form a full memory