From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-db5eur01on0110.outbound.protection.outlook.com ([104.47.2.110]:35872 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932489AbeCMKg7 (ORCPT ); Tue, 13 Mar 2018 06:36:59 -0400 Subject: [PATCH net-next 1/4] net: Convert sctp_defaults_ops From: Kirill Tkhai To: davem@davemloft.net, vyasevich@gmail.com, nhorman@tuxdriver.com, jon.maloy@ericsson.com, ying.xue@windriver.com, santosh.shilimkar@oracle.com, netdev@vger.kernel.org, ktkhai@virtuozzo.com Date: Tue, 13 Mar 2018 13:36:51 +0300 Message-ID: <152093741149.31266.4913746591926487599.stgit@localhost.localdomain> In-Reply-To: <152093726634.31266.4973922580771632781.stgit@localhost.localdomain> References: <152093726634.31266.4973922580771632781.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: 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 --- net/sctp/protocol.c | 1 + 1 file changed, 1 insertion(+) 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)