diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-03-13 11:37:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-13 16:24:56 +0100 |
commit | bfdfa38ff0e26463e418235c0be03c0f0eca4569 (patch) | |
tree | 19bc8f49e9efa17bf59a4d3989c4a00ad3b08b85 /net/sctp/protocol.c | |
parent | net: Convert sctp_defaults_ops (diff) | |
download | linux-bfdfa38ff0e26463e418235c0be03c0f0eca4569.tar.xz 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.c | 1 |
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. */ |