netfilter: ipset: References are protected by rwlock instead of mutex
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 29 Mar 2011 13:00:43 +0000 (15:00 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 29 Mar 2011 13:00:43 +0000 (15:00 +0200)
commit6604271c5bc658a6067ed0c3deba4d89e0e50382
treece3a2840c08eabffad08de01022abbe6203218cc
parent49a341f2bb0e8eb2f2877956a758ea40cbd47b26
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