]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7972adc7514c0f5eb3d6f0880f7957640c3628eb
treece3a2840c08eabffad08de01022abbe6203218cc
parent426a8f9f4c4d0e319c50f281151a023ce6bcf443
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