diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-03-13 13:36:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-13 18:24:56 +0300 |
commit | 2e01ae0ef2db96c530249563383f479f8d9ca183 (patch) | |
tree | ade320cd488a49170a14f2ec0067a29e1a974a95 | |
parent | d98985dd6c2dc69e2ad5f5482a5237fb9487ed99 (diff) | |
download | linux-2e01ae0ef2db96c530249563383f479f8d9ca183.tar.xz |
net: Convert sctp_defaults_ops
These pernet_operations have a deal with sysctl, /proc
entries and statistics. Also, there are freeing of
net::sctp::addr_waitq queue and net::sctp::local_addr_list
in exit method. All of them look pernet-divided, and it
seems these items are only interesting for sctp_defaults_ops,
which are safe to be executed in parallel.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-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 91813e686c67..32be52304f98 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1330,6 +1330,7 @@ static void __net_exit sctp_defaults_exit(struct net *net) static struct pernet_operations sctp_defaults_ops = { .init = sctp_defaults_init, .exit = sctp_defaults_exit, + .async = true, }; static int __net_init sctp_ctrlsock_init(struct net *net) |