net: Convert ip6_tnl_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 26 Feb 2018 13:02:11 +0000 (16:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 16:01:38 +0000 (11:01 -0500)
These pernet_operations are similar to ip6gre_net_ops. Exit method
unregisters all net ip6_tnl tunnels, and it looks like another
pernet_operations are not interested in foreign net tunnels list.
So, it's possible to mark them async.

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

index 4b15fe92827867493cca7ad58d70701c0dea599f..869e2e6750f7a791c019adfbef76ae29916cfb44 100644 (file)
@@ -2250,6 +2250,7 @@ static struct pernet_operations ip6_tnl_net_ops = {
        .exit_batch = ip6_tnl_exit_batch_net,
        .id   = &ip6_tnl_net_id,
        .size = sizeof(struct ip6_tnl_net),
+       .async = true,
 };
 
 /**