From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-he1eur01on0133.outbound.protection.outlook.com ([104.47.0.133]:58080 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752210AbeBSIuR (ORCPT ); Mon, 19 Feb 2018 03:50:17 -0500 Subject: [PATCH 11/16] net: Convert ip6_flowlabel_net_ops From: Kirill Tkhai To: davem@davemloft.net, avagin@virtuozzo.com, pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, yoshfuji@linux-ipv6.org, afaerber@suse.de, steffen.klassert@secunet.com, herbert@gondor.apana.org.au, johannes@sipsolutions.net, netdev@vger.kernel.org, ktkhai@virtuozzo.com Date: Mon, 19 Feb 2018 11:50:09 +0300 Message-ID: <151903020946.32574.8986412443356323801.stgit@localhost.localdomain> In-Reply-To: <151902976942.32574.10711323959096437995.stgit@localhost.localdomain> References: <151902976942.32574.10711323959096437995.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 /proc entries. ip6_fl_purge() makes almost the same actions as timer ip6_fl_gc_timer does, and as it can be executed in parallel with ip6_fl_purge(), two parallel ip6_fl_purge() may be executed. So, we can mark it async. Signed-off-by: Kirill Tkhai --- net/ipv6/ip6_flowlabel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c index 3dab664ff503..6ddf52282894 100644 --- a/net/ipv6/ip6_flowlabel.c +++ b/net/ipv6/ip6_flowlabel.c @@ -873,6 +873,7 @@ static void __net_exit ip6_flowlabel_net_exit(struct net *net) static struct pernet_operations ip6_flowlabel_net_ops = { .init = ip6_flowlabel_proc_init, .exit = ip6_flowlabel_net_exit, + .async = true, }; int ip6_flowlabel_init(void)