diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-02-13 04:29:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-13 10:36:07 -0500 |
commit | 83caf62c867bed2637d4f3713839b0c414d6d966 (patch) | |
tree | 892f8ccd40e105a455ffe63bf11c12f4ae58f1c5 | |
parent | 13da199c38ee7f33a1c42db62647118f9f9f527c (diff) |
net: Convert genl_pernet_ops
This pernet_operations create and destroy net::genl_sock.
Foreign pernet_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/netlink/genetlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index 6f02499ef007..a6f63a5faee7 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c | |||
@@ -1035,6 +1035,7 @@ static void __net_exit genl_pernet_exit(struct net *net) | |||
1035 | static struct pernet_operations genl_pernet_ops = { | 1035 | static struct pernet_operations genl_pernet_ops = { |
1036 | .init = genl_pernet_init, | 1036 | .init = genl_pernet_init, |
1037 | .exit = genl_pernet_exit, | 1037 | .exit = genl_pernet_exit, |
1038 | .async = true, | ||
1038 | }; | 1039 | }; |
1039 | 1040 | ||
1040 | static int __init genl_init(void) | 1041 | static int __init genl_init(void) |