Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320377
b: refs/heads/master
c: 6139919
h: refs/heads/master
i:
  320375: 326d44e
v: v3
  • Loading branch information
Sage Weil committed Jul 31, 2012
1 parent 8c0e2bb commit 271068e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 4740a623d20c51d167da7f752b63e2b8714b2543
refs/heads/master: 6139919133377652992a5fe134e22abce3e9c25e
9 changes: 8 additions & 1 deletion trunk/net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -2735,9 +2735,16 @@ static int ceph_con_in_msg_alloc(struct ceph_connection *con, int *skip)
BUG_ON(con->in_msg != NULL);

if (con->ops->alloc_msg) {
struct ceph_msg *msg;

mutex_unlock(&con->mutex);
con->in_msg = con->ops->alloc_msg(con, hdr, skip);
msg = con->ops->alloc_msg(con, hdr, skip);
mutex_lock(&con->mutex);
if (con->state != CON_STATE_OPEN) {
ceph_msg_put(msg);
return -EAGAIN;
}
con->in_msg = msg;
if (con->in_msg) {
con->in_msg->con = con->ops->get(con);
BUG_ON(con->in_msg->con == NULL);
Expand Down

0 comments on commit 271068e

Please sign in to comment.