diff mbox

[1/3] net/rds: call rds_conn_drop instead of open code it at rds_connect_complete

Message ID 1412200194-28902-2-git-send-email-herton@redhat.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Herton R. Krzesinski Oct. 1, 2014, 9:49 p.m. UTC
Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
---
 net/rds/threads.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox

Patch

diff --git a/net/rds/threads.c b/net/rds/threads.c
index 65eaefc..dc2402e 100644
--- a/net/rds/threads.c
+++ b/net/rds/threads.c
@@ -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;
 	}