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 4/4] net: Convert rds_tcp_net_ops
Date: Tue, 13 Mar 2018 13:37:21 +0300 [thread overview]
Message-ID: <152093744177.31266.3728943369699574840.stgit@localhost.localdomain> (raw)
In-Reply-To: <152093726634.31266.4973922580771632781.stgit@localhost.localdomain>
These pernet_operations create and destroy sysctl table
and listen socket. Also, exit method flushes global
workqueue and work. Everything looks per-net safe,
so we can mark them async.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
net/rds/tcp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index 08230a145042..eb04e7fa2467 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -515,6 +515,7 @@ static struct pernet_operations rds_tcp_net_ops = {
.exit = rds_tcp_exit_net,
.id = &rds_tcp_netid,
.size = sizeof(struct rds_tcp_net),
+ .async = true,
};
static void rds_tcp_kill_sock(struct net *net)
next prev parent reply other threads:[~2018-03-13 10:37 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 ` [PATCH net-next 1/4] net: Convert sctp_defaults_ops Kirill Tkhai
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 ` Kirill Tkhai [this message]
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=152093744177.31266.3728943369699574840.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