aboutsummaryrefslogtreecommitdiff
path: root/net/rds
diff options
context:
space:
mode:
authorHerton R. Krzesinski2014-10-01 18:49:52 -0300
committerDavid S. Miller2014-10-03 12:51:59 -0700
commit310886dd5fa3606d9325b10caf7c8ba5e9f9ab03 (patch)
treeb0349ab97270bfece15779c1adb0d612d2f7fa57 /net/rds
parentee042ec88022249b848306dd6e87ffd2fd88a839 (diff)
net/rds: call rds_conn_drop instead of open code it at rds_connect_complete
Signed-off-by: Herton R. Krzesinski <herton@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/threads.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/rds/threads.c b/net/rds/threads.c
index 65eaefcab241..dc2402e871fd 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;
}