net: Convert synproxy_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 26 Feb 2018 12:59:37 +0000 (15:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 16:01:35 +0000 (11:01 -0500)
These pernet_operations create and destroy /proc entries
and allocate extents to template ct, which depend on global
nf_ct_ext_types[] array. So, we are able to mark them async.

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

index 92139a087260ae3d9fb03a2da4de375fc2f3a20c..64b875e452ca93299b4887e185f7b64894174f70 100644 (file)
@@ -398,6 +398,7 @@ static struct pernet_operations synproxy_net_ops = {
        .exit           = synproxy_net_exit,
        .id             = &synproxy_net_id,
        .size           = sizeof(struct synproxy_net),
+       .async          = true,
 };
 
 static int __init synproxy_core_init(void)