]> bbs.cooldavid.org Git - net-next-2.6.git/commit
netfilter: {ip,ip6,arp}_tables: avoid lockdep false positive
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 16 Aug 2010 10:22:10 +0000 (10:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Aug 2010 22:12:14 +0000 (15:12 -0700)
commit001389b9581c13fe5fc357a0f89234f85af4215d
treefdf6e017a99229c90d3075b35d7f62edee924c8e
parent5ca6f7c85159a5ca7e637b1d9f79f0d9bc56e5dc
netfilter: {ip,ip6,arp}_tables: avoid lockdep false positive

After commit 24b36f019 (netfilter: {ip,ip6,arp}_tables: dont block
bottom half more than necessary), lockdep can raise a warning
because we attempt to lock a spinlock with BH enabled, while
the same lock is usually locked by another cpu in a softirq context.

Disable again BH to avoid these lockdep warnings.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Diagnosed-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c