Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188570
b: refs/heads/master
c: 0ba6478
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Oct 9, 2009
1 parent 59c47fb commit 79e9980
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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: c1ea8823be69ebebaface912142190e910711984
refs/heads/master: 0ba6478df7c6bef0f4b2625554545f941f89fb97
13 changes: 9 additions & 4 deletions trunk/fs/ceph/osd_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,15 @@ static void __unregister_request(struct ceph_osd_client *osdc,
rb_erase(&req->r_node, &osdc->requests);
osdc->num_requests--;

list_del_init(&req->r_osd_item);
if (list_empty(&req->r_osd->o_requests))
remove_osd(osdc, req->r_osd);
req->r_osd = NULL;
if (req->r_osd) {
/* make sure the original request isn't in flight. */
ceph_con_revoke(&req->r_osd->o_con, req->r_request);

list_del_init(&req->r_osd_item);
if (list_empty(&req->r_osd->o_requests))
remove_osd(osdc, req->r_osd);
req->r_osd = NULL;
}

ceph_osdc_put_request(req);

Expand Down

0 comments on commit 79e9980

Please sign in to comment.