| Submitter | Herton Ronaldo Krzesinski |
|---|---|
| Date | Nov. 26, 2012, 4:56 p.m. |
| Message ID | <1353949160-26803-96-git-send-email-herton.krzesinski@canonical.com> |
| Download | mbox | patch |
| Permalink | /patch/201828/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index ff12d32..c52d587 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c @@ -321,6 +321,7 @@ static int ceph_tcp_connect(struct ceph_connection *con) dout("connect %s\n", ceph_pr_addr(&con->peer_addr.in_addr)); + con_sock_state_connecting(con); ret = sock->ops->connect(sock, (struct sockaddr *)paddr, sizeof(*paddr), O_NONBLOCK); if (ret == -EINPROGRESS) { @@ -336,8 +337,6 @@ static int ceph_tcp_connect(struct ceph_connection *con) return ret; } con->sock = sock; - con_sock_state_connecting(con); - return 0; }