Commit 59a51358 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller

net: Convert diag_net_ops

These pernet operations just create and destroy netlink
socket. The socket is pernet and else operations don't
touch it.
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 2608e6b7
...@@ -328,6 +328,7 @@ static void __net_exit diag_net_exit(struct net *net) ...@@ -328,6 +328,7 @@ static void __net_exit diag_net_exit(struct net *net)
static struct pernet_operations diag_net_ops = { static struct pernet_operations diag_net_ops = {
.init = diag_net_init, .init = diag_net_init,
.exit = diag_net_exit, .exit = diag_net_exit,
.async = true,
}; };
static int __init sock_diag_init(void) static int __init sock_diag_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