net: Convert sctp_ctrlsock_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 13 Mar 2018 10:37:02 +0000 (13:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Mar 2018 15:24:56 +0000 (11:24 -0400)
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: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/protocol.c

index 32be52304f98235613fbca0704585939f736304f..606361ee9e4a1b179611130ea17b18697ede1959 100644 (file)
@@ -1354,6 +1354,7 @@ static void __net_init sctp_ctrlsock_exit(struct net *net)
 static struct pernet_operations sctp_ctrlsock_ops = {
        .init = sctp_ctrlsock_init,
        .exit = sctp_ctrlsock_exit,
+       .async = true,
 };
 
 /* Initialize the universe into something sensible.  */