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

net: Convert sctp_ctrlsock_ops

These pernet_operations create and destroy net::sctp::ctl_sock.
Since pernet_operations do not send sctp packets each other,
they look safe to be marked as async.
Signed-off-by: NKirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: NNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2e01ae0e
...@@ -1354,6 +1354,7 @@ static void __net_init sctp_ctrlsock_exit(struct net *net) ...@@ -1354,6 +1354,7 @@ static void __net_init sctp_ctrlsock_exit(struct net *net)
static struct pernet_operations sctp_ctrlsock_ops = { static struct pernet_operations sctp_ctrlsock_ops = {
.init = sctp_ctrlsock_init, .init = sctp_ctrlsock_init,
.exit = sctp_ctrlsock_exit, .exit = sctp_ctrlsock_exit,
.async = true,
}; };
/* Initialize the universe into something sensible. */ /* Initialize the universe into something sensible. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册