]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: references are protected by rwlock instead of mutex
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 4 Apr 2011 13:19:25 +0000 (15:19 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 4 Apr 2011 13:19:25 +0000 (15:19 +0200)
commit84d05cb9a95e4a56fd2b7b15a4dff3f667559764
tree8c9961f59a190ab05a568216d69f4809ab3041e2
parent813987eaa5b5409aeb09457925be1b320bd27c08
netfilter: ipset: references are protected by rwlock instead of mutex

The timeout variant of the list:set type must reference the member sets.
However, its garbage collector runs at timer interrupt so the mutex
protection of the references is a no go. Therefore the reference protection
is converted to rwlock.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/ipset/ip_set.h
include/linux/netfilter/ipset/ip_set_ahash.h
net/netfilter/ipset/ip_set_bitmap_ip.c
net/netfilter/ipset/ip_set_bitmap_ipmac.c
net/netfilter/ipset/ip_set_bitmap_port.c
net/netfilter/ipset/ip_set_core.c
net/netfilter/ipset/ip_set_list_set.c