summaryrefslogtreecommitdiff
path: root/net/netlink
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-13 12:29:23 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-13 10:36:07 -0500
commit83caf62c867bed2637d4f3713839b0c414d6d966 (patch)
tree892f8ccd40e105a455ffe63bf11c12f4ae58f1c5 /net/netlink
parent13da199c38ee7f33a1c42db62647118f9f9f527c (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>
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/genetlink.c1
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)
static struct pernet_operations genl_pernet_ops = {
.init = genl_pernet_init,
.exit = genl_pernet_exit,
+ .async = true,
};
static int __init genl_init(void)