net: Convert l2tp_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 15 Mar 2018 09:10:57 +0000 (12:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Mar 2018 21:07:39 +0000 (17:07 -0400)
Init method is rather simple. Exit method queues del_work
for every tunnel from per-net list. This seems to be safe
to be marked async.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c

index 83421c6..189a12a 100644 (file)
@@ -1787,6 +1787,7 @@ static struct pernet_operations l2tp_net_ops = {
        .exit = l2tp_exit_net,
        .id   = &l2tp_net_id,
        .size = sizeof(struct l2tp_net),
+       .async = true,
 };
 
 static int __init l2tp_init(void)