net: Convert simple pernet_operations
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 26 Feb 2018 12:59:56 +0000 (15:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 16:01:35 +0000 (11:01 -0500)
These pernet_operations make pretty simple actions
like variable initialization on init, debug checks
on exit, and so on, and they obviously are able
to be executed in parallel with any others:

vrf_net_ops
lockd_net_ops
grace_net_ops
xfrm6_tunnel_net_ops
kcm_net_ops
tcf_net_ops

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c
fs/lockd/svc.c
fs/nfs_common/grace.c
net/ipv6/xfrm6_tunnel.c
net/kcm/kcmsock.c
net/sched/cls_api.c

index 9ce0182223a0a659af0e0ae96797fad80e28cd24..e459e601c57f62af7c39f0438ec98b60f09c94e3 100644 (file)
@@ -1434,6 +1434,7 @@ static struct pernet_operations vrf_net_ops __net_initdata = {
        .init = vrf_netns_init,
        .id   = &vrf_net_id,
        .size = sizeof(bool),
+       .async = true,
 };
 
 static int __init vrf_init_module(void)
index 9c36d614bf89602121427c27d443365689d31aac..2dee4e03ff1ccf468e0c8447c25197ceee69340f 100644 (file)
@@ -709,6 +709,7 @@ static struct pernet_operations lockd_net_ops = {
        .exit = lockd_exit_net,
        .id = &lockd_net_id,
        .size = sizeof(struct lockd_net),
+       .async = true,
 };
 
 
index 5be08f02a76bcb7f405bce8169f53ebf34c452a2..8c743a405df69d007e235dc802aef3644cb90995 100644 (file)
@@ -118,6 +118,7 @@ static struct pernet_operations grace_net_ops = {
        .exit = grace_exit_net,
        .id   = &grace_net_id,
        .size = sizeof(struct list_head),
+       .async = true,
 };
 
 static int __init
index f85f0d7480acf48074a7d53557c3c50ca59973cf..a9673619e0e9944073afeb2dd29fdf9a215bf508 100644 (file)
@@ -353,6 +353,7 @@ static struct pernet_operations xfrm6_tunnel_net_ops = {
        .exit   = xfrm6_tunnel_net_exit,
        .id     = &xfrm6_tunnel_net_id,
        .size   = sizeof(struct xfrm6_tunnel_net),
+       .async  = true,
 };
 
 static int __init xfrm6_tunnel_init(void)
index 435594648dac03dcc29ba47ca1da29e4a5684142..a6cd0712e06352609e29529852e7175ffef1b3b8 100644 (file)
@@ -2015,6 +2015,7 @@ static struct pernet_operations kcm_net_ops = {
        .exit = kcm_exit_net,
        .id   = &kcm_net_id,
        .size = sizeof(struct kcm_net),
+       .async = true,
 };
 
 static int __init kcm_init(void)
index 9d1a8bbf81523276c56d5cfe4d647a2ab523bf21..19f9f421d5b73cab111dd53c7bd0aa9427e6d192 100644 (file)
@@ -1618,6 +1618,7 @@ static struct pernet_operations tcf_net_ops = {
        .exit = tcf_net_exit,
        .id   = &tcf_net_id,
        .size = sizeof(struct tcf_net),
+       .async = true,
 };
 
 static int __init tc_filter_init(void)