mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
libceph: create messenger with client
This simplifies the init/shutdown paths, and makes client->msgr available during the rest of the setup process. Signed-off-by: Sage Weil <[email protected]>
This commit is contained in:
parent
6a8ea4706a
commit
6ab00d465a
4 changed files with 34 additions and 28 deletions
|
|
@ -260,7 +260,7 @@ static struct rbd_client *rbd_client_create(struct ceph_options *opt,
|
|||
kref_init(&rbdc->kref);
|
||||
INIT_LIST_HEAD(&rbdc->node);
|
||||
|
||||
rbdc->client = ceph_create_client(opt, rbdc);
|
||||
rbdc->client = ceph_create_client(opt, rbdc, 0, 0);
|
||||
if (IS_ERR(rbdc->client))
|
||||
goto out_rbdc;
|
||||
opt = NULL; /* Now rbdc->client is responsible for opt */
|
||||
|
|
|
|||
Loading…
Reference in a new issue