aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r--drivers/md/dm-raid1.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index 9defad045418..9bfd057be686 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -1115,9 +1115,11 @@ static int mirror_ctr(struct dm_target *ti, unsigned int argc, char **argv)
1115 goto err_destroy_wq; 1115 goto err_destroy_wq;
1116 } 1116 }
1117 1117
1118 r = dm_kcopyd_client_create(&ms->kcopyd_client); 1118 ms->kcopyd_client = dm_kcopyd_client_create();
1119 if (r) 1119 if (IS_ERR(ms->kcopyd_client)) {
1120 r = PTR_ERR(ms->kcopyd_client);
1120 goto err_destroy_wq; 1121 goto err_destroy_wq;
1122 }
1121 1123
1122 wakeup_mirrord(ms); 1124 wakeup_mirrord(ms);
1123 return 0; 1125 return 0;