diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2017-12-22 09:39:00 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-27 13:37:27 -0500 |
commit | b319109396d6ddf1587a54e33f89fd3bea7c66db (patch) | |
tree | a0a0e5c2935fa86d50709e0f3a2afce50c3d4860 /net/rds | |
parent | 7ae0c649c47f1c5d2db8cee6dd75855970af1669 (diff) | |
download | linux-next-b319109396d6ddf1587a54e33f89fd3bea7c66db.tar.gz |
rds: tcp: initialize t_tcp_detached to false
Commit f10b4cff98c6 ("rds: tcp: atomically purge entries from
rds_tcp_conn_list during netns delete") adds the field t_tcp_detached,
but this needs to be initialized explicitly to false.
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
-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 39f502d47969..a61a498187ce 100644 --- a/net/rds/tcp.c +++ b/net/rds/tcp.c @@ -290,6 +290,7 @@ static int rds_tcp_conn_alloc(struct rds_connection *conn, gfp_t gfp) tc->t_cpath = &conn->c_path[i]; spin_lock_irq(&rds_tcp_conn_lock); + tc->t_tcp_node_detached = false; list_add_tail(&tc->t_tcp_node, &rds_tcp_conn_list); spin_unlock_irq(&rds_tcp_conn_lock); rdsdebug("rds_conn_path [%d] tc %p\n", i, |