Re: [PATCH 1/4 v4] spinlock: Document memory barrier rules

2016-08-29 Thread Davidlohr Bueso
On Mon, 29 Aug 2016, Manfred Spraul wrote: Right now, the spinlock machinery tries to guarantee barriers even for unorthodox locking cases, which ends up as a constant stream of updates as the architectures try to support new unorthodox ideas. The patch proposes to clarify the rules: spin_lock

[PATCH 1/4 v4] spinlock: Document memory barrier rules

2016-08-29 Thread Manfred Spraul
Right now, the spinlock machinery tries to guarantee barriers even for unorthodox locking cases, which ends up as a constant stream of updates as the architectures try to support new unorthodox ideas. The patch proposes to clarify the rules: spin_lock is ACQUIRE, spin_unlock is RELEASE. spin_unloc