Skip to content

Commit

Permalink
net/rds: call rds_conn_drop instead of open code it at rds_connect_co…
Browse files Browse the repository at this point in the history
…mplete

Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Herton R. Krzesinski authored and David S. Miller committed Oct 3, 2014
1 parent ee042ec commit 310886d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/rds/threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ void rds_connect_complete(struct rds_connection *conn)
"current state is %d\n",
__func__,
atomic_read(&conn->c_state));
atomic_set(&conn->c_state, RDS_CONN_ERROR);
queue_work(rds_wq, &conn->c_down_w);
rds_conn_drop(conn);
return;
}

Expand Down

0 comments on commit 310886d

Please sign in to comment.