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>
This commit is contained in:
Kirill Tkhai 2018-02-13 12:30:52 +03:00 коммит произвёл David S. Miller
Родитель 2608e6b7ad
Коммит 59a513587a
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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)