dm kcopyd: return client directly and not through a pointer
Return client directly from dm_kcopyd_client_create, not through a parameter, making it consistent with dm_io_client_create. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
This commit is contained in:
committed by
Alasdair G Kergon
parent
5f43ba2950
commit
fa34ce7307
@@ -1115,9 +1115,11 @@ static int mirror_ctr(struct dm_target *ti, unsigned int argc, char **argv)
|
||||
goto err_destroy_wq;
|
||||
}
|
||||
|
||||
r = dm_kcopyd_client_create(&ms->kcopyd_client);
|
||||
if (r)
|
||||
ms->kcopyd_client = dm_kcopyd_client_create();
|
||||
if (IS_ERR(ms->kcopyd_client)) {
|
||||
r = PTR_ERR(ms->kcopyd_client);
|
||||
goto err_destroy_wq;
|
||||
}
|
||||
|
||||
wakeup_mirrord(ms);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user