Commit 9481721b authored by Eric Dumazet's avatar Eric Dumazet Committed by Patrick McHardy

netfilter: remove synchronize_net() calls in ip_queue/ip6_queue

nf_unregister_queue_handlers() already does a synchronize_rcu()
call, we dont need to do it again in callers.
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent aa3c487f
......@@ -622,7 +622,7 @@ cleanup_ipqnl: __maybe_unused
static void __exit ip_queue_fini(void)
{
nf_unregister_queue_handlers(&nfqh);
synchronize_net();
ipq_flush(NULL, 0);
#ifdef CONFIG_SYSCTL
......
......@@ -625,7 +625,7 @@ cleanup_ipqnl: __maybe_unused
static void __exit ip6_queue_fini(void)
{
nf_unregister_queue_handlers(&nfqh);
synchronize_net();
ipq_flush(NULL, 0);
#ifdef CONFIG_SYSCTL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment