Commit c939a5e4 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller

net: Convert rds_tcp_net_ops

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: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent afbbc374
...@@ -515,6 +515,7 @@ static struct pernet_operations rds_tcp_net_ops = { ...@@ -515,6 +515,7 @@ static struct pernet_operations rds_tcp_net_ops = {
.exit = rds_tcp_exit_net, .exit = rds_tcp_exit_net,
.id = &rds_tcp_netid, .id = &rds_tcp_netid,
.size = sizeof(struct rds_tcp_net), .size = sizeof(struct rds_tcp_net),
.async = true,
}; };
static void rds_tcp_kill_sock(struct net *net) static void rds_tcp_kill_sock(struct net *net)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment