summaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-13 12:31:01 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-13 10:36:09 -0500
commitb86b47a39598cdf17e0e826ebe1be21c798112cf (patch)
treea392bcdcc156c560c61ebcf8320ae3850c2a3c1f /net/netlink
parent59a513587ac09359875d6074778f21a3c01754e0 (diff)
downloadlinux-b86b47a39598cdf17e0e826ebe1be21c798112cf.tar.gz
linux-b86b47a39598cdf17e0e826ebe1be21c798112cf.tar.bz2
linux-b86b47a39598cdf17e0e826ebe1be21c798112cf.zip
net: Convert netlink_tap_net_ops
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>
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/af_netlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index b3065908e146..63cb55d3c2fd 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -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)