Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376936
b: refs/heads/master
c: 7262cfc
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder committed May 17, 2013
1 parent 0e1f0ce commit fa4c040
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 39be95e9c8c0b5668c9f8806ffe29bf9f4bc0f40
refs/heads/master: 7262cfca430a1a0e0707149af29ae86bc0ded230
10 changes: 4 additions & 6 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ static const struct block_device_operations rbd_bd_ops = {
};

/*
* Initialize an rbd client instance.
* We own *ceph_opts.
* Initialize an rbd client instance. Success or not, this function
* consumes ceph_opts.
*/
static struct rbd_client *rbd_client_create(struct ceph_options *ceph_opts)
{
Expand Down Expand Up @@ -677,7 +677,8 @@ static int parse_rbd_opts_token(char *c, void *private)

/*
* Get a ceph client with specific addr and configuration, if one does
* not exist create it.
* not exist create it. Either way, ceph_opts is consumed by this
* function.
*/
static struct rbd_client *rbd_get_client(struct ceph_options *ceph_opts)
{
Expand Down Expand Up @@ -4994,7 +4995,6 @@ static ssize_t rbd_add(struct bus_type *bus,
rc = PTR_ERR(rbdc);
goto err_out_args;
}
ceph_opts = NULL; /* rbd_dev client now owns this */

/* pick the pool */
osdc = &rbdc->client->osdc;
Expand Down Expand Up @@ -5038,8 +5038,6 @@ static ssize_t rbd_add(struct bus_type *bus,
err_out_client:
rbd_put_client(rbdc);
err_out_args:
if (ceph_opts)
ceph_destroy_options(ceph_opts);
kfree(rbd_opts);
rbd_spec_put(spec);
err_out_module:
Expand Down

0 comments on commit fa4c040

Please sign in to comment.