OSDN Git Service

net: Convert cttimeout_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Wed, 7 Mar 2018 09:39:51 +0000 (12:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2018 17:36:44 +0000 (12:36 -0500)
These pernet_operations also look closed in themself.
Exit method touch only per-net structures, so it's
safe to execute them for several net namespaces in parallel.

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

index 95b0470..6819300 100644 (file)
@@ -586,6 +586,7 @@ static void __net_exit cttimeout_net_exit(struct net *net)
 static struct pernet_operations cttimeout_ops = {
        .init   = cttimeout_net_init,
        .exit   = cttimeout_net_exit,
+       .async  = true,
 };
 
 static int __init cttimeout_init(void)