Skip to content

Commit 59a5135

Browse files
Kirill Tkhaidavem330
authored andcommitted
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>
1 parent 2608e6b commit 59a5135

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/core/sock_diag.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ static void __net_exit diag_net_exit(struct net *net)
328328
static struct pernet_operations diag_net_ops = {
329329
.init = diag_net_init,
330330
.exit = diag_net_exit,
331+
.async = true,
331332
};
332333

333334
static int __init sock_diag_init(void)

0 commit comments

Comments
 (0)