]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
net: Convert inet6_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 19 Feb 2018 08:48:04 +0000 (11:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Feb 2018 19:19:09 +0000 (14:19 -0500)
init method initializes sysctl defaults, allocates
percpu arrays and creates /proc entries.
exit method reverts the above.

There are no pernet_operations, which are interested
in the above entities of foreign net namespace, so
inet6_net_ops are able to be marked as async.

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

index c1e292db04db649821ae5accdd6d3c108983cb95..dbbe04018813bf6da5efd2dcded830b081808d6e 100644 (file)
@@ -857,6 +857,7 @@ static void __net_exit inet6_net_exit(struct net *net)
 static struct pernet_operations inet6_net_ops = {
        .init = inet6_net_init,
        .exit = inet6_net_exit,
+       .async = true,
 };
 
 static const struct ipv6_stub ipv6_stub_impl = {