Skip to content

Commit b86b47a

Browse files
Kirill Tkhaidavem330
authored andcommitted
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>
1 parent 59a5135 commit b86b47a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/netlink/af_netlink.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ static struct pernet_operations netlink_tap_net_ops = {
253253
.exit = netlink_tap_exit_net,
254254
.id = &netlink_tap_net_id,
255255
.size = sizeof(struct netlink_tap_net),
256+
.async = true,
256257
};
257258

258259
static bool netlink_filter_tap(const struct sk_buff *skb)

0 commit comments

Comments
 (0)