net: Convert geneve_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 26 Feb 2018 13:00:48 +0000 (16:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 16:01:36 +0000 (11:01 -0500)
These pernet_operations are similar to bond_net_ops. Exit method
unregisters all net geneve devices, and it looks like another
pernet_operations are not interested in foreign net geneve list.
So, it's possible to mark them async.

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

index b919e89a9b932b43fa8e006351e7db10242bd54f..516dd59249d79c61a569aca236fd14c8debc512b 100644 (file)
@@ -1694,6 +1694,7 @@ static struct pernet_operations geneve_net_ops = {
        .exit_batch = geneve_exit_batch_net,
        .id   = &geneve_net_id,
        .size = sizeof(struct geneve_net),
+       .async = true,
 };
 
 static int __init geneve_init_module(void)