Commit 36b0068e authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller

net: Convert proto_net_ops

This patch starts to convert pernet_subsys, registered
from subsys initcalls.

It seems safe to be executed in parallel with others,
as it's only creates/destoyes proc entry,
which nobody else is not interested in.
Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: default avatarAndrei Vagin <avagin@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 15898a01
...@@ -3386,6 +3386,7 @@ static __net_exit void proto_exit_net(struct net *net) ...@@ -3386,6 +3386,7 @@ static __net_exit void proto_exit_net(struct net *net)
static __net_initdata struct pernet_operations proto_net_ops = { static __net_initdata struct pernet_operations proto_net_ops = {
.init = proto_init_net, .init = proto_init_net,
.exit = proto_exit_net, .exit = proto_exit_net,
.async = true,
}; };
static int __init proto_init(void) static int __init proto_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment