Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320283
b: refs/heads/master
c: 36eb71a
h: refs/heads/master
i:
  320281: ec5c27b
  320279: 87ccb1a
v: v3
  • Loading branch information
Sage Weil authored and Alex Elder committed Jun 22, 2012
1 parent ec8941d commit bdb5df2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 26ce171915f348abd1f41da1ed139d93750d987f
refs/heads/master: 36eb71aa57e6a33d61fd90a2fd87f00c6844bc86
16 changes: 8 additions & 8 deletions trunk/net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static void ceph_msg_remove(struct ceph_msg *msg)
{
list_del_init(&msg->list_head);
BUG_ON(msg->con == NULL);
ceph_con_put(msg->con);
msg->con->ops->put(msg->con);
msg->con = NULL;

ceph_msg_put(msg);
Expand All @@ -440,7 +440,7 @@ static void reset_connection(struct ceph_connection *con)
con->in_msg->con = NULL;
ceph_msg_put(con->in_msg);
con->in_msg = NULL;
ceph_con_put(con);
con->ops->put(con);
}

con->connect_seq = 0;
Expand Down Expand Up @@ -1919,7 +1919,7 @@ static void process_message(struct ceph_connection *con)
con->in_msg->con = NULL;
msg = con->in_msg;
con->in_msg = NULL;
ceph_con_put(con);
con->ops->put(con);

/* if first message, set peer_name */
if (con->peer_name.type == 0)
Expand Down Expand Up @@ -2281,7 +2281,7 @@ static void ceph_fault(struct ceph_connection *con)
con->in_msg->con = NULL;
ceph_msg_put(con->in_msg);
con->in_msg = NULL;
ceph_con_put(con);
con->ops->put(con);
}

/* Requeue anything that hasn't been acked */
Expand Down Expand Up @@ -2400,7 +2400,7 @@ void ceph_con_send(struct ceph_connection *con, struct ceph_msg *msg)
mutex_lock(&con->mutex);

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

BUG_ON(!list_empty(&msg->list_head));
Expand Down Expand Up @@ -2436,7 +2436,7 @@ void ceph_msg_revoke(struct ceph_msg *msg)
dout("%s %p msg %p - was on queue\n", __func__, con, msg);
list_del_init(&msg->list_head);
BUG_ON(msg->con == NULL);
ceph_con_put(msg->con);
msg->con->ops->put(msg->con);
msg->con = NULL;
msg->hdr.seq = 0;

Expand Down Expand Up @@ -2646,7 +2646,7 @@ static bool ceph_con_in_msg_alloc(struct ceph_connection *con,
con->in_msg = con->ops->alloc_msg(con, hdr, &skip);
mutex_lock(&con->mutex);
if (con->in_msg) {
con->in_msg->con = ceph_con_get(con);
con->in_msg->con = con->ops->get(con);
BUG_ON(con->in_msg->con == NULL);
}
if (skip)
Expand All @@ -2662,7 +2662,7 @@ static bool ceph_con_in_msg_alloc(struct ceph_connection *con,
type, front_len);
return false;
}
con->in_msg->con = ceph_con_get(con);
con->in_msg->con = con->ops->get(con);
BUG_ON(con->in_msg->con == NULL);
con->in_msg->page_alignment = le16_to_cpu(hdr->data_off);
}
Expand Down

0 comments on commit bdb5df2

Please sign in to comment.