Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373404
b: refs/heads/master
c: ace6d3a
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed May 2, 2013
1 parent 6204401 commit 0d41682
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 27 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: 25d71cb92d8eb48df9cbd8cc4bb28e88ee8e88d9
refs/heads/master: ace6d3a96f00c271b3f337adcde8e8cbe39c3820
2 changes: 0 additions & 2 deletions trunk/include/linux/ceph/osd_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ struct ceph_osd_request {
int r_pg_osds[CEPH_PG_MAX_SIZE];
int r_num_pg_osds;

struct ceph_connection *r_con_filling_msg;

struct ceph_msg *r_request, *r_reply;
int r_flags; /* any additional flags for the osd */
u32 r_sent; /* >0 if r_request is sending/sent */
Expand Down
29 changes: 5 additions & 24 deletions trunk/net/ceph/osd_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,10 @@ void ceph_osdc_release_request(struct kref *kref)

if (req->r_request)
ceph_msg_put(req->r_request);
if (req->r_con_filling_msg) {
dout("%s revoking msg %p from con %p\n", __func__,
req->r_reply, req->r_con_filling_msg);
if (req->r_reply) {
ceph_msg_revoke_incoming(req->r_reply);
req->r_con_filling_msg->ops->put(req->r_con_filling_msg);
req->r_con_filling_msg = NULL;
}
if (req->r_reply)
ceph_msg_put(req->r_reply);
}

if (req->r_data_in.type == CEPH_OSD_DATA_TYPE_PAGES &&
req->r_data_in.own_pages) {
Expand Down Expand Up @@ -1353,16 +1348,6 @@ static void handle_reply(struct ceph_osd_client *osdc, struct ceph_msg *msg,
for (i = 0; i < numops; i++)
req->r_reply_op_result[i] = ceph_decode_32(&p);

/*
* if this connection filled our message, drop our reference now, to
* avoid a (safe but slower) revoke later.
*/
if (req->r_con_filling_msg == con && req->r_reply == msg) {
dout(" dropping con_filling_msg ref %p\n", con);
req->r_con_filling_msg = NULL;
con->ops->put(con);
}

if (!req->r_got_reply) {
unsigned int bytes;

Expand Down Expand Up @@ -2199,13 +2184,10 @@ static struct ceph_msg *get_reply(struct ceph_connection *con,
goto out;
}

if (req->r_con_filling_msg) {
if (req->r_reply->con)
dout("%s revoking msg %p from old con %p\n", __func__,
req->r_reply, req->r_con_filling_msg);
ceph_msg_revoke_incoming(req->r_reply);
req->r_con_filling_msg->ops->put(req->r_con_filling_msg);
req->r_con_filling_msg = NULL;
}
req->r_reply, req->r_reply->con);
ceph_msg_revoke_incoming(req->r_reply);

if (front > req->r_reply->front.iov_len) {
pr_warning("get_reply front %d > preallocated %d\n",
Expand Down Expand Up @@ -2236,7 +2218,6 @@ static struct ceph_msg *get_reply(struct ceph_connection *con,
}
}
*skip = 0;
req->r_con_filling_msg = con->ops->get(con);
dout("get_reply tid %lld %p\n", tid, m);

out:
Expand Down

0 comments on commit 0d41682

Please sign in to comment.