net: Convert nf_ct_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 19 Mar 2018 11:45:46 +0000 (14:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 15:11:30 +0000 (11:11 -0400)
These pernet_operations register and unregister sysctl.
Also, there is inet_frags_exit_net() called in exit method,
which has to be safe after a560002437d3 "net: Fix hlist
corruptions in inet_evict_bucket()".

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/netfilter/nf_conntrack_reasm.c

index b84ce3e6d728a5b8af65b91faf42ec640ff03910..34136fe80ed5fdc1f1eb825d790449fcb588fb31 100644 (file)
@@ -646,6 +646,7 @@ static void nf_ct_net_exit(struct net *net)
 static struct pernet_operations nf_ct_net_ops = {
        .init = nf_ct_net_init,
        .exit = nf_ct_net_exit,
+       .async = true,
 };
 
 int nf_ct_frag6_init(void)