From: Kirill Tkhai Date: Tue, 13 Mar 2018 10:36:51 +0000 (+0300) Subject: net: Convert sctp_defaults_ops X-Git-Tag: pci-v4.17-changes-2~83^2~203^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2e01ae0ef2db96c530249563383f479f8d9ca183;p=users%2Fdwmw2%2Flinux.git 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 Signed-off-by: David S. Miller --- diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 91813e686c673..32be52304f982 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)