On Fri, Apr 29, 2016 at 11:23:07AM +0200, Pablo Neira Ayuso wrote: > On Sun, Apr 24, 2016 at 01:17:14AM +0200, Florian Westphal wrote: > > Else we get 'BUG: spinlock bad magic on CPU#' on resize when > > spin lock debugging is enabled. > > Applied, thanks Florian. Wait, probably better this?
commit 70d72b7e060e0a16b9ded9d0fbd3dff109743de3 Author: Florian Westphal <fw@xxxxxxxxx> Date: Sun Apr 24 01:17:14 2016 +0200 netfilter: conntrack: init all_locks to avoid debug warning Else we get 'BUG: spinlock bad magic on CPU#' on resize when spin lock debugging is enabled. Signed-off-by: Florian Westphal <fw@xxxxxxxxx> Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index afde5f5..895d11d 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c @@ -66,7 +66,7 @@ EXPORT_SYMBOL_GPL(nf_conntrack_locks); __cacheline_aligned_in_smp DEFINE_SPINLOCK(nf_conntrack_expect_lock); EXPORT_SYMBOL_GPL(nf_conntrack_expect_lock); -static __read_mostly spinlock_t nf_conntrack_locks_all_lock; +static __read_mostly DEFINE_SPINLOCK(nf_conntrack_locks_all_lock); static __read_mostly bool nf_conntrack_locks_all; void nf_conntrack_lock(spinlock_t *lock) __acquires(lock)