Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359577
b: refs/heads/master
c: cd323ac
h: refs/heads/master
i:
  359575: f51d92c
v: v3
  • Loading branch information
Alex Elder authored and Alex Elder committed Jan 17, 2013
1 parent 25c664c commit 02b46cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 8295cda7ceceb7b25f9a12cd21bbfb6206e28a6d
refs/heads/master: cd323ac0eb433b14cbb270bfc5a82f308f2662de
11 changes: 4 additions & 7 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1126,12 +1126,8 @@ static int rbd_do_request(struct request *rq,
struct ceph_osd_client *osdc;

rbd_req = kzalloc(sizeof(*rbd_req), GFP_NOIO);
if (!rbd_req) {
if (coll)
rbd_coll_end_req_index(rq, coll, coll_index,
(s32)-ENOMEM, len);
if (!rbd_req)
return -ENOMEM;
}

if (coll) {
rbd_req->coll = coll;
Expand Down Expand Up @@ -1206,7 +1202,6 @@ static int rbd_do_request(struct request *rq,
bio_chain_put(rbd_req->bio);
ceph_osdc_put_request(osd_req);
done_pages:
rbd_coll_end_req(rbd_req, (s32)ret, len);
kfree(rbd_req);
return ret;
}
Expand Down Expand Up @@ -1359,7 +1354,9 @@ static int rbd_do_op(struct request *rq,
ops,
coll, coll_index,
rbd_req_cb, 0, NULL);

if (ret < 0)
rbd_coll_end_req_index(rq, coll, coll_index,
(s32)ret, seg_len);
rbd_destroy_ops(ops);
done:
kfree(seg_name);
Expand Down

0 comments on commit 02b46cf

Please sign in to comment.