summaryrefslogtreecommitdiffstats
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
authorKirill Tkhai2018-03-13 11:37:02 +0100
committerDavid S. Miller2018-03-13 16:24:56 +0100
commitbfdfa38ff0e26463e418235c0be03c0f0eca4569 (patch)
tree19bc8f49e9efa17bf59a4d3989c4a00ad3b08b85 /net/sctp/protocol.c
parentnet: Convert sctp_defaults_ops (diff)
downloadkernel-qcow2-linux-bfdfa38ff0e26463e418235c0be03c0f0eca4569.tar.gz
kernel-qcow2-linux-bfdfa38ff0e26463e418235c0be03c0f0eca4569.tar.xz
kernel-qcow2-linux-bfdfa38ff0e26463e418235c0be03c0f0eca4569.zip
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: Kirill Tkhai <ktkhai@virtuozzo.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/protocol.c')
-rw-r--r--net/sctp/protocol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 32be52304f98..606361ee9e4a 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -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. */