Commit 310886dd authored by Herton R. Krzesinski's avatar Herton R. Krzesinski Committed by David S. Miller

net/rds: call rds_conn_drop instead of open code it at rds_connect_complete

Signed-off-by: default avatarHerton R. Krzesinski <herton@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ee042ec8
...@@ -78,8 +78,7 @@ void rds_connect_complete(struct rds_connection *conn) ...@@ -78,8 +78,7 @@ void rds_connect_complete(struct rds_connection *conn)
"current state is %d\n", "current state is %d\n",
__func__, __func__,
atomic_read(&conn->c_state)); atomic_read(&conn->c_state));
atomic_set(&conn->c_state, RDS_CONN_ERROR); rds_conn_drop(conn);
queue_work(rds_wq, &conn->c_down_w);
return; return;
} }
......
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