From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-eopbgr30102.outbound.protection.outlook.com ([40.107.3.102]:14064 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933589AbeCELbf (ORCPT ); Mon, 5 Mar 2018 06:31:35 -0500 Subject: [PATCH net-next 06/12] net: Convert dccp_v4_ops From: Kirill Tkhai To: pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, stephen@networkplumber.org, davem@davemloft.net, dmitry.tarnyagin@lockless.no, socketcan@hartkopp.net, mkl@pengutronix.de, gerrit@erg.abdn.ac.uk, yoshfuji@linux-ipv6.org, johannes.berg@intel.com, garsilva@embeddedor.com, ross.lagerwall@citrix.com, aconole@bytheb.org, netdev@vger.kernel.org, ktkhai@virtuozzo.com Date: Mon, 05 Mar 2018 14:31:28 +0300 Message-ID: <152024948834.3454.15662913883647294282.stgit@localhost.localdomain> In-Reply-To: <152024910817.3454.18426950407771593279.stgit@localhost.localdomain> References: <152024910817.3454.18426950407771593279.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::dccp::v4_ctl_sk. It looks like another pernet_operations don't want to send dccp packets to dying or creating net. Batch method similar to ipv4/ipv6 sockets and it has to be safe to be executed in parallel with anything else. So, we mark them as async. Signed-off-by: Kirill Tkhai --- net/dccp/ipv4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index e65fcb45c3f6..13ad28ab1e79 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c @@ -1031,6 +1031,7 @@ static struct pernet_operations dccp_v4_ops = { .init = dccp_v4_init_net, .exit = dccp_v4_exit_net, .exit_batch = dccp_v4_exit_batch, + .async = true, }; static int __init dccp_v4_init(void)