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 83421c6f0bef1c48e35fe42000deea456ab1548d..189a12a5e4ac001775121493481b437ed29e0191 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)