From: Kirill Tkhai <ktkhai@virtuozzo.com>
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
Subject: [PATCH net-next 1/4] net: Convert sctp_defaults_ops
Date: Tue, 13 Mar 2018 13:36:51 +0300 [thread overview]
Message-ID: <152093741149.31266.4913746591926487599.stgit@localhost.localdomain> (raw)
In-Reply-To: <152093726634.31266.4973922580771632781.stgit@localhost.localdomain>
These pernet_operations have a deal with sysctl, /proc
entries and statistics. Also, there are freeing of
net::sctp::addr_waitq queue and net::sctp::local_addr_list
in exit method. All of them look pernet-divided, and it
seems these items are only interesting for sctp_defaults_ops,
which are safe to be executed in parallel.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
net/sctp/protocol.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 91813e686c67..32be52304f98 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -1330,6 +1330,7 @@ static void __net_exit sctp_defaults_exit(struct net *net)
static struct pernet_operations sctp_defaults_ops = {
.init = sctp_defaults_init,
.exit = sctp_defaults_exit,
+ .async = true,
};
static int __net_init sctp_ctrlsock_init(struct net *net)
next prev parent reply other threads:[~2018-03-13 10:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-13 10:36 [PATCH net-next 0/4] Converting pernet_operations (part #6) Kirill Tkhai
2018-03-13 10:36 ` Kirill Tkhai [this message]
2018-03-13 10:37 ` [PATCH net-next 2/4] net: Convert sctp_ctrlsock_ops Kirill Tkhai
2018-03-13 11:45 ` Neil Horman
2018-03-13 10:37 ` [PATCH net-next 3/4] net: Convert tipc_net_ops Kirill Tkhai
2018-03-13 10:37 ` [PATCH net-next 4/4] net: Convert rds_tcp_net_ops Kirill Tkhai
2018-03-13 15:25 ` [PATCH net-next 0/4] Converting pernet_operations (part #6) 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=152093741149.31266.4913746591926487599.stgit@localhost.localdomain \
--to=ktkhai@virtuozzo.com \
--cc=davem@davemloft.net \
--cc=jon.maloy@ericsson.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
--cc=santosh.shilimkar@oracle.com \
--cc=vyasevich@gmail.com \
--cc=ying.xue@windriver.com \
/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