Skip to content

Commit c939a5e

Browse files
Kirill Tkhaidavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent afbbc37 commit c939a5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/rds/tcp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ static struct pernet_operations rds_tcp_net_ops = {
515515
.exit = rds_tcp_exit_net,
516516
.id = &rds_tcp_netid,
517517
.size = sizeof(struct rds_tcp_net),
518+
.async = true,
518519
};
519520

520521
static void rds_tcp_kill_sock(struct net *net)

0 commit comments

Comments
 (0)