Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320363
b: refs/heads/master
c: a59b55a
h: refs/heads/master
i:
  320361: 10bd191
  320359: 6fd7286
v: v3
  • Loading branch information
Sage Weil committed Jul 31, 2012
1 parent 0251818 commit 829750f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 00650931e52e97fe64096bec167f5a6780dfd94a
refs/heads/master: a59b55a602b6c741052d79c1e3643f8440cddd27
16 changes: 7 additions & 9 deletions trunk/net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -2453,22 +2453,20 @@ static void clear_standby(struct ceph_connection *con)
*/
void ceph_con_send(struct ceph_connection *con, struct ceph_msg *msg)
{
if (test_bit(CLOSED, &con->state)) {
dout("con_send %p closed, dropping %p\n", con, msg);
ceph_msg_put(msg);
return;
}

/* set src+dst */
msg->hdr.src = con->msgr->inst.name;

BUG_ON(msg->front.iov_len != le32_to_cpu(msg->hdr.front_len));

msg->needs_out_seq = true;

/* queue */
mutex_lock(&con->mutex);

if (test_bit(CLOSED, &con->state)) {
dout("con_send %p closed, dropping %p\n", con, msg);
ceph_msg_put(msg);
mutex_unlock(&con->mutex);
return;
}

BUG_ON(msg->con != NULL);
msg->con = con->ops->get(con);
BUG_ON(msg->con == NULL);
Expand Down

0 comments on commit 829750f

Please sign in to comment.