Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373526
b: refs/heads/master
c: b536f69
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed May 2, 2013
1 parent 1baaaf4 commit 3954226
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 8ad42cd0c002fa278f6d0135e22fcb188e400a28
refs/heads/master: b536f69a3a589113992c32982bf2981c8225c9da
12 changes: 5 additions & 7 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4879,10 +4879,6 @@ static int rbd_dev_image_probe(struct rbd_device *rbd_dev)
goto err_out_snaps;

ret = rbd_dev_probe_parent(rbd_dev);
if (ret)
goto err_out_snaps;

ret = rbd_dev_device_setup(rbd_dev);
if (!ret)
return 0;

Expand Down Expand Up @@ -4964,9 +4960,12 @@ static ssize_t rbd_add(struct bus_type *bus,
if (rc < 0)
goto err_out_rbd_dev;

return count;
rc = rbd_dev_device_setup(rbd_dev);
if (!rc)
return count;

rbd_dev_image_release(rbd_dev);
err_out_rbd_dev:
kfree(rbd_dev->header_name);
rbd_dev_destroy(rbd_dev);
err_out_client:
rbd_put_client(rbdc);
Expand Down Expand Up @@ -5029,7 +5028,6 @@ static void rbd_dev_remove_parent(struct rbd_device *rbd_dev)
second = third;
}
rbd_assert(second);
rbd_bus_del_dev(second);
rbd_dev_image_release(second);
first->parent = NULL;
first->parent_overlap = 0;
Expand Down

0 comments on commit 3954226

Please sign in to comment.