net: Convert raw6_net_ops, udplite6_net_ops, ipv6_proc_ops, if6_proc_net_ops and...
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 19 Feb 2018 08:49:10 +0000 (11:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Feb 2018 19:19:10 +0000 (14:19 -0500)
These pernet_operations create and destroy /proc entries
and safely may be converted and safely may be mark as async.

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

index 8c17f8d..4facfe0 100644 (file)
@@ -4257,6 +4257,7 @@ static void __net_exit if6_proc_net_exit(struct net *net)
 static struct pernet_operations if6_proc_net_ops = {
        .init = if6_proc_net_init,
        .exit = if6_proc_net_exit,
+       .async = true,
 };
 
 int __init if6_proc_init(void)
index b678142..b8858c5 100644 (file)
@@ -343,6 +343,7 @@ static void __net_exit ipv6_proc_exit_net(struct net *net)
 static struct pernet_operations ipv6_proc_ops = {
        .init = ipv6_proc_init_net,
        .exit = ipv6_proc_exit_net,
+       .async = true,
 };
 
 int __init ipv6_misc_proc_init(void)
index 4c25339..10a4ac4 100644 (file)
@@ -1332,6 +1332,7 @@ static void __net_exit raw6_exit_net(struct net *net)
 static struct pernet_operations raw6_net_ops = {
        .init = raw6_init_net,
        .exit = raw6_exit_net,
+       .async = true,
 };
 
 int __init raw6_proc_init(void)
index f0baae2..1be84ef 100644 (file)
@@ -4972,6 +4972,7 @@ static void __net_exit ip6_route_net_exit_late(struct net *net)
 static struct pernet_operations ip6_route_net_ops = {
        .init = ip6_route_net_init,
        .exit = ip6_route_net_exit,
+       .async = true,
 };
 
 static int __net_init ipv6_inetpeer_init(struct net *net)
@@ -5002,6 +5003,7 @@ static struct pernet_operations ipv6_inetpeer_ops = {
 static struct pernet_operations ip6_route_net_late_ops = {
        .init = ip6_route_net_init_late,
        .exit = ip6_route_net_exit_late,
+       .async = true,
 };
 
 static struct notifier_block ip6_route_dev_notifier = {