diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-03-13 13:37:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-13 11:24:56 -0400 |
commit | c939a5e4d597d635dee4eab2f27308d50fa606f7 (patch) | |
tree | 8c2ff5997de05c8a6389393489f0d474e8497f6c /net/rds/tcp.c | |
parent | afbbc374ab1281f2e5c18278a62a47fb906f0fa4 (diff) |
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: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/tcp.c')
-rw-r--r-- | net/rds/tcp.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |