netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kirill Tkhai <ktkhai@virtuozzo.com>
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
Subject: [PATCH net-next 10/12] net: Convert nf_conntrack_net_ops
Date: Mon, 05 Mar 2018 14:32:06 +0300	[thread overview]
Message-ID: <152024952627.3454.3208284119313836669.stgit@localhost.localdomain> (raw)
In-Reply-To: <152024910817.3454.18426950407771593279.stgit@localhost.localdomain>

These pernet_operations register and unregister sysctl and /proc
entries. Exit batch method also waits till all per-net conntracks
are dead. Thus, they are safe to be marked as async.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 net/netfilter/nf_conntrack_standalone.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c
index 9123fdec5e14..3cdce391362e 100644
--- a/net/netfilter/nf_conntrack_standalone.c
+++ b/net/netfilter/nf_conntrack_standalone.c
@@ -705,6 +705,7 @@ static void nf_conntrack_pernet_exit(struct list_head *net_exit_list)
 static struct pernet_operations nf_conntrack_net_ops = {
 	.init		= nf_conntrack_pernet_init,
 	.exit_batch	= nf_conntrack_pernet_exit,
+	.async		= true,
 };
 
 static int __init nf_conntrack_standalone_init(void)

  parent reply	other threads:[~2018-03-05 11:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-05 11:30 [PATCH net-next 00/12] Converting pernet_operations (part #4) Kirill Tkhai
2018-03-05 11:30 ` [PATCH net-next 01/12] net: Convert broute_net_ops, frame_filter_net_ops and frame_nat_net_ops Kirill Tkhai
2018-03-05 11:30 ` [PATCH net-next 02/12] net: Convert log pernet_operations Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 03/12] net: Convert arp_tables_net_ops and ip6_tables_net_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 04/12] net: Convert caif_net_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 05/12] net: Convert cangw_pernet_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 06/12] net: Convert dccp_v4_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 07/12] net: Convert dccp_v6_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 08/12] net: Convert fou_net_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 09/12] net: Convert ip_set_net_ops Kirill Tkhai
2018-03-05 11:32 ` Kirill Tkhai [this message]
2018-03-05 11:32 ` [PATCH net-next 11/12] net: Convert ctnetlink_net_ops Kirill Tkhai
2018-03-05 11:32 ` [PATCH net-next 12/12] net: Convert proto_gre_net_ops Kirill Tkhai
2018-03-05 15:53 ` [PATCH net-next 00/12] Converting pernet_operations (part #4) David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=152024952627.3454.3208284119313836669.stgit@localhost.localdomain \
    --to=ktkhai@virtuozzo.com \
    --cc=aconole@bytheb.org \
    --cc=davem@davemloft.net \
    --cc=dmitry.tarnyagin@lockless.no \
    --cc=fw@strlen.de \
    --cc=garsilva@embeddedor.com \
    --cc=gerrit@erg.abdn.ac.uk \
    --cc=johannes.berg@intel.com \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=mkl@pengutronix.de \
    --cc=netdev@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=ross.lagerwall@citrix.com \
    --cc=socketcan@hartkopp.net \
    --cc=stephen@networkplumber.org \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).