locking/spinlock, netfilter: Fix nf_conntrack_lock() barriers
authorPeter Zijlstra <peterz@infradead.org>
Tue, 24 May 2016 13:00:38 +0000 (15:00 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 14 Jun 2016 09:55:16 +0000 (11:55 +0200)
commitb316ff783d17bd6217804e2e4385ce9347d7dad9
tree3a9fad86e590ef5c74e4e6cc2948265d1a22dea5
parentbe3e7844980352756de4261b276ee2ba5be7a26b
locking/spinlock, netfilter: Fix nf_conntrack_lock() barriers

Even with spin_unlock_wait() fixed, nf_conntrack_lock{,_all}() is
borken as it misses a bunch of memory barriers to order the whole
global vs local locks scheme.

Even x86 (and other TSO archs) are affected.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
[ Updated the comments. ]
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
net/netfilter/nf_conntrack_core.c