提交 489b30b5 编写于 作者: K Kirill Tkhai 提交者: David S. Miller

net: Convert l2tp_net_ops

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: NKirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: NGuillaume Nault <g.nault@alphalink.fr>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 53794570
...@@ -1787,6 +1787,7 @@ static struct pernet_operations l2tp_net_ops = { ...@@ -1787,6 +1787,7 @@ static struct pernet_operations l2tp_net_ops = {
.exit = l2tp_exit_net, .exit = l2tp_exit_net,
.id = &l2tp_net_id, .id = &l2tp_net_id,
.size = sizeof(struct l2tp_net), .size = sizeof(struct l2tp_net),
.async = true,
}; };
static int __init l2tp_init(void) static int __init l2tp_init(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册