net: Convert raw6_net_ops, udplite6_net_ops, ipv6_proc_ops, if6_proc_net_ops and ip6_route_net_late_ops
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>
This commit is contained in:
parent
1a2e93329d
commit
509114112d
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue