forked from luck/tmp_suning_uos_patched
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: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
aa3c487f35
commit
9481721be1
@ -622,7 +622,7 @@ cleanup_ipqnl: __maybe_unused
|
|||||||
static void __exit ip_queue_fini(void)
|
static void __exit ip_queue_fini(void)
|
||||||
{
|
{
|
||||||
nf_unregister_queue_handlers(&nfqh);
|
nf_unregister_queue_handlers(&nfqh);
|
||||||
synchronize_net();
|
|
||||||
ipq_flush(NULL, 0);
|
ipq_flush(NULL, 0);
|
||||||
|
|
||||||
#ifdef CONFIG_SYSCTL
|
#ifdef CONFIG_SYSCTL
|
||||||
|
@ -625,7 +625,7 @@ cleanup_ipqnl: __maybe_unused
|
|||||||
static void __exit ip6_queue_fini(void)
|
static void __exit ip6_queue_fini(void)
|
||||||
{
|
{
|
||||||
nf_unregister_queue_handlers(&nfqh);
|
nf_unregister_queue_handlers(&nfqh);
|
||||||
synchronize_net();
|
|
||||||
ipq_flush(NULL, 0);
|
ipq_flush(NULL, 0);
|
||||||
|
|
||||||
#ifdef CONFIG_SYSCTL
|
#ifdef CONFIG_SYSCTL
|
||||||
|
Loading…
Reference in New Issue
Block a user