summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-13 12:30:52 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-13 10:36:09 -0500
commit59a513587ac09359875d6074778f21a3c01754e0 (patch)
tree16d91b301c561b6394dc46ddba610714a63cadf9
parent2608e6b7adc8b07194b855e2102d6f1a277e3f03 (diff)
downloadlinux-59a513587ac09359875d6074778f21a3c01754e0.tar.gz
linux-59a513587ac09359875d6074778f21a3c01754e0.tar.bz2
linux-59a513587ac09359875d6074778f21a3c01754e0.zip
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: Kirill Tkhai <ktkhai@virtuozzo.com> Acked-by: Andrei Vagin <avagin@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/core/sock_diag.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock_diag.c b/net/core/sock_diag.c
index 146b50e30659..aee5642affd9 100644
--- a/net/core/sock_diag.c
+++ b/net/core/sock_diag.c
@@ -328,6 +328,7 @@ static void __net_exit diag_net_exit(struct net *net)
static struct pernet_operations diag_net_ops = {
.init = diag_net_init,
.exit = diag_net_exit,
+ .async = true,
};
static int __init sock_diag_init(void)