netfilter: ipset: references are protected by rwlock instead of mutex
commit2f9f28b212a2bd4948c8ceaaec33ce0123632129
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 4 Apr 2011 13:19:25 +0000 (4 15:19 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 4 Apr 2011 13:19:25 +0000 (4 15:19 +0200)
tree8c9961f59a190ab05a568216d69f4809ab3041e2
parent512d06b5b64fb422d90f199b1be188082729edf9
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