diff --git a/drivers/md/md.c b/drivers/md/md.c index 25d454285ee8b51db48805c06370b50f1bf0eefe..459f1899f383161fd2466cb29e165d178450d46d 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -2478,8 +2478,7 @@ static int add_bound_rdev(struct md_rdev *rdev) if (add_journal) mddev_resume(mddev); if (err) { - unbind_rdev_from_array(rdev); - export_rdev(rdev); + md_kick_rdev_from_array(rdev); return err; } }