net: Convert netlink_tap_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 13 Feb 2018 09:31:01 +0000 (12:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Feb 2018 15:36:09 +0000 (10:36 -0500)
These pernet_operations init just allocated net memory,
and they obviously can be executed in parallel in any
others.

v3: New

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c

index b3065908e146fa14c717341c270c57b2f1e3c02a..63cb55d3c2fd470cc8a3dd8245d490734c4938d1 100644 (file)
@@ -253,6 +253,7 @@ static struct pernet_operations netlink_tap_net_ops = {
        .exit = netlink_tap_exit_net,
        .id   = &netlink_tap_net_id,
        .size = sizeof(struct netlink_tap_net),
+       .async = true,
 };
 
 static bool netlink_filter_tap(const struct sk_buff *skb)