summaryrefslogtreecommitdiffstats
path: root/net/rds/threads.c
diff options
context:
space:
mode:
authorHerton R. Krzesinski <herton@redhat.com>2014-10-01 23:49:52 +0200
committerDavid S. Miller <davem@davemloft.net>2014-10-03 21:51:59 +0200
commit310886dd5fa3606d9325b10caf7c8ba5e9f9ab03 (patch)
treeb0349ab97270bfece15779c1adb0d612d2f7fa57 /net/rds/threads.c
parentMerge tag 'md/3.17-final-fix' of git://neil.brown.name/md (diff)
downloadlinux-310886dd5fa3606d9325b10caf7c8ba5e9f9ab03.tar.xz
linux-310886dd5fa3606d9325b10caf7c8ba5e9f9ab03.zip
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/threads.c')
-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;
}