From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ve1eur01on0091.outbound.protection.outlook.com ([104.47.1.91]:39657 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932489AbeCMKh2 (ORCPT ); Tue, 13 Mar 2018 06:37:28 -0400 Subject: [PATCH net-next 4/4] net: Convert rds_tcp_net_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:21 +0300 Message-ID: <152093744177.31266.3728943369699574840.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 sysctl table and listen socket. Also, exit method flushes global workqueue and work. Everything looks per-net safe, so we can mark them async. Signed-off-by: Kirill Tkhai --- net/rds/tcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/rds/tcp.c b/net/rds/tcp.c index 08230a145042..eb04e7fa2467 100644 --- a/net/rds/tcp.c +++ b/net/rds/tcp.c @@ -515,6 +515,7 @@ static struct pernet_operations rds_tcp_net_ops = { .exit = rds_tcp_exit_net, .id = &rds_tcp_netid, .size = sizeof(struct rds_tcp_net), + .async = true, }; static void rds_tcp_kill_sock(struct net *net)