netfilter: remove synchronize_net() calls in ip_queue/ip6_queue
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 4 Nov 2009 20:14:31 +0000 (21:14 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 4 Nov 2009 20:14:31 +0000 (21:14 +0100)
nf_unregister_queue_handlers() already does a synchronize_rcu()
call, we dont need to do it again in callers.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/ip_queue.c
net/ipv6/netfilter/ip6_queue.c

index c156db2..9811a45 100644 (file)
@@ -622,7 +622,7 @@ cleanup_netlink_notifier:
 static void __exit ip_queue_fini(void)
 {
        nf_unregister_queue_handlers(&nfqh);
-       synchronize_net();
+
        ipq_flush(NULL, 0);
 
 #ifdef CONFIG_SYSCTL
index 1cf3f0c..a82016f 100644 (file)
@@ -625,7 +625,7 @@ cleanup_netlink_notifier:
 static void __exit ip6_queue_fini(void)
 {
        nf_unregister_queue_handlers(&nfqh);
-       synchronize_net();
+
        ipq_flush(NULL, 0);
 
 #ifdef CONFIG_SYSCTL