net: Convert tipc_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 13 Mar 2018 10:37:11 +0000 (13:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Mar 2018 15:24:56 +0000 (11:24 -0400)
TIPC looks concentrated in itself, and other pernet_operations
seem not touching its entities.

tipc_net_ops look pernet-divided, and they should be safe to
be executed in parallel for several net the same time.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/core.c

index 0b982d048fb9b36c8bec876c32361f264e5dac9e..04fd91bb11d7d6c6c8201bc866645f4ab34260ba 100644 (file)
@@ -105,6 +105,7 @@ static struct pernet_operations tipc_net_ops = {
        .exit = tipc_exit_net,
        .id   = &tipc_net_id,
        .size = sizeof(struct tipc_net),
+       .async = true,
 };
 
 static int __init tipc_init(void)