]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
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 8c17f8d8d5d92c6e9bd256aa5c9dcc796209febf..4facfe0b18882f0ec911c8f2d2137d823ff60d2c 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 b67814242f78c36f9d0fd96c9f0353fcfc5bfe12..b8858c546f41b40598e73e04b5eda7e7e79e5670 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 4c25339b19843501a3887fd6d6975953a57ec84d..10a4ac4933b7e54f231f9e3f86b88a2445084c44 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 f0baae26db8f6139cb71769c312a7099f04401ea..1be84ef23f4311095a74226d859ae1da403bfd28 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 = {