net: Convert gtp_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 26 Feb 2018 13:01:16 +0000 (16:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 16:01:37 +0000 (11:01 -0500)
These pernet_operations are similar to bond_net_ops. Exit method
unregisters all net gtp devices, and it looks like another
pernet_operations are not interested in foreign net gtp 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/gtp.c

index f38e32a..127edd2 100644 (file)
@@ -1325,6 +1325,7 @@ static struct pernet_operations gtp_net_ops = {
        .exit   = gtp_net_exit,
        .id     = &gtp_net_id,
        .size   = sizeof(struct gtp_net),
+       .async  = true,
 };
 
 static int __init gtp_init(void)