net/rds: call rds_conn_drop instead of open code it at rds_connect_complete
authorHerton R. Krzesinski <herton@redhat.com>
Wed, 1 Oct 2014 21:49:52 +0000 (18:49 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Oct 2014 19:51:59 +0000 (12:51 -0700)
Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/threads.c

index 65eaefcab241f105fdcaeac11be3d81328f8b0cc..dc2402e871fda52d10b0a67089c7c6e13832f72b 100644 (file)
@@ -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;
        }