From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-eopbgr30112.outbound.protection.outlook.com ([40.107.3.112]:9728 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751011AbeCGJjt (ORCPT ); Wed, 7 Mar 2018 04:39:49 -0500 Subject: [PATCH net-next 05/16] net: Convert nfnl_acct_ops From: Kirill Tkhai To: davem@davemloft.net, pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, netdev@vger.kernel.org, ktkhai@virtuozzo.com Date: Wed, 07 Mar 2018 12:39:42 +0300 Message-ID: <152041558257.11627.993557513639751116.stgit@localhost.localdomain> In-Reply-To: <152041531893.11627.15708076126889316570.stgit@localhost.localdomain> References: <152041531893.11627.15708076126889316570.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 look closed in themself, and there are no other users of net::nfnl_acct_list outside. They are safe to be executed for several net namespaces in parallel. Signed-off-by: Kirill Tkhai --- net/netfilter/nfnetlink_acct.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/netfilter/nfnetlink_acct.c b/net/netfilter/nfnetlink_acct.c index 88d427f9f9e6..8d9f18bb8840 100644 --- a/net/netfilter/nfnetlink_acct.c +++ b/net/netfilter/nfnetlink_acct.c @@ -515,6 +515,7 @@ static void __net_exit nfnl_acct_net_exit(struct net *net) static struct pernet_operations nfnl_acct_ops = { .init = nfnl_acct_net_init, .exit = nfnl_acct_net_exit, + .async = true, }; static int __init nfnl_acct_init(void)