net: Convert simple pernet_operations
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>
This commit is contained in:
parent
7300bd94e6
commit
02df428ca2
|
@ -1434,6 +1434,7 @@ static struct pernet_operations vrf_net_ops __net_initdata = {
|
||||||
.init = vrf_netns_init,
|
.init = vrf_netns_init,
|
||||||
.id = &vrf_net_id,
|
.id = &vrf_net_id,
|
||||||
.size = sizeof(bool),
|
.size = sizeof(bool),
|
||||||
|
.async = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init vrf_init_module(void)
|
static int __init vrf_init_module(void)
|
||||||
|
|
|
@ -709,6 +709,7 @@ static struct pernet_operations lockd_net_ops = {
|
||||||
.exit = lockd_exit_net,
|
.exit = lockd_exit_net,
|
||||||
.id = &lockd_net_id,
|
.id = &lockd_net_id,
|
||||||
.size = sizeof(struct lockd_net),
|
.size = sizeof(struct lockd_net),
|
||||||
|
.async = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,7 @@ static struct pernet_operations grace_net_ops = {
|
||||||
.exit = grace_exit_net,
|
.exit = grace_exit_net,
|
||||||
.id = &grace_net_id,
|
.id = &grace_net_id,
|
||||||
.size = sizeof(struct list_head),
|
.size = sizeof(struct list_head),
|
||||||
|
.async = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init
|
static int __init
|
||||||
|
|
|
@ -353,6 +353,7 @@ static struct pernet_operations xfrm6_tunnel_net_ops = {
|
||||||
.exit = xfrm6_tunnel_net_exit,
|
.exit = xfrm6_tunnel_net_exit,
|
||||||
.id = &xfrm6_tunnel_net_id,
|
.id = &xfrm6_tunnel_net_id,
|
||||||
.size = sizeof(struct xfrm6_tunnel_net),
|
.size = sizeof(struct xfrm6_tunnel_net),
|
||||||
|
.async = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init xfrm6_tunnel_init(void)
|
static int __init xfrm6_tunnel_init(void)
|
||||||
|
|
|
@ -2015,6 +2015,7 @@ static struct pernet_operations kcm_net_ops = {
|
||||||
.exit = kcm_exit_net,
|
.exit = kcm_exit_net,
|
||||||
.id = &kcm_net_id,
|
.id = &kcm_net_id,
|
||||||
.size = sizeof(struct kcm_net),
|
.size = sizeof(struct kcm_net),
|
||||||
|
.async = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init kcm_init(void)
|
static int __init kcm_init(void)
|
||||||
|
|
|
@ -1618,6 +1618,7 @@ static struct pernet_operations tcf_net_ops = {
|
||||||
.exit = tcf_net_exit,
|
.exit = tcf_net_exit,
|
||||||
.id = &tcf_net_id,
|
.id = &tcf_net_id,
|
||||||
.size = sizeof(struct tcf_net),
|
.size = sizeof(struct tcf_net),
|
||||||
|
.async = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init tc_filter_init(void)
|
static int __init tc_filter_init(void)
|
||||||
|
|
Loading…
Reference in New Issue