net: Convert ppp_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 26 Feb 2018 13:01:25 +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 ppp devices, and it looks like another
pernet_operations are not interested in foreign net ppp 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/ppp/ppp_generic.c

index 255a5def56e941939e02642d0ee9868ec1fff5bd..a393c1dff7dca44b95f5b9b83fb405e565f5f6d6 100644 (file)
@@ -971,6 +971,7 @@ static struct pernet_operations ppp_net_ops = {
        .exit = ppp_exit_net,
        .id   = &ppp_net_id,
        .size = sizeof(struct ppp_net),
+       .async = true,
 };
 
 static int ppp_unit_register(struct ppp *ppp, int unit, bool ifname_is_set)