rds: tcp: initialize t_tcp_detached to false
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Fri, 22 Dec 2017 17:39:00 +0000 (09:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Dec 2017 18:37:27 +0000 (13:37 -0500)
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>
net/rds/tcp.c

index 39f502d47969d9dcb30fc1f87640325a0f4c260d..a61a498187ce9b7e27e91415cfcaa0e478f402ca 100644 (file)
@@ -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,