From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ve1eur01on0128.outbound.protection.outlook.com ([104.47.1.128]:49184 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932489AbeCMKhI (ORCPT ); Tue, 13 Mar 2018 06:37:08 -0400 Subject: [PATCH net-next 2/4] net: Convert sctp_ctrlsock_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:37:02 +0300 Message-ID: <152093742247.31266.12266517837915305348.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 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 --- net/sctp/protocol.c | 1 + 1 file changed, 1 insertion(+) 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. */