Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375600
b: refs/heads/master
c: 5b2ab72
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder committed May 9, 2013
1 parent abdb578 commit 7097d03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 91c6febb3817be576785ef06aeaaa8ed423e0a2a
refs/heads/master: 5b2ab72d367d2682c1a237448fbc1595881a88fa
10 changes: 7 additions & 3 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2574,7 +2574,7 @@ static void rbd_img_parent_read(struct rbd_obj_request *obj_request)
rbd_assert(obj_request_img_data_test(obj_request));
rbd_assert(obj_request->img_request != NULL);
rbd_assert(obj_request->result == (s32) -ENOENT);
rbd_assert(obj_request->type == OBJ_REQUEST_BIO);
rbd_assert(obj_request_type_valid(obj_request->type));

rbd_dev = obj_request->img_request->rbd_dev;
rbd_assert(rbd_dev->parent != NULL);
Expand All @@ -2590,8 +2590,12 @@ static void rbd_img_parent_read(struct rbd_obj_request *obj_request)
rbd_obj_request_get(obj_request);
img_request->obj_request = obj_request;

result = rbd_img_request_fill(img_request, OBJ_REQUEST_BIO,
obj_request->bio_list);
if (obj_request->type == OBJ_REQUEST_BIO)
result = rbd_img_request_fill(img_request, OBJ_REQUEST_BIO,
obj_request->bio_list);
else
result = rbd_img_request_fill(img_request, OBJ_REQUEST_PAGES,
obj_request->pages);
if (result)
goto out_err;

Expand Down

0 comments on commit 7097d03

Please sign in to comment.