commit | db76767213be6c6db1b1344621511e27e9984fbb | [log] [tgz] |
---|---|---|
author | Guoqing Jiang <gqjiang@suse.com> | Thu Jun 02 23:32:05 2016 -0400 |
committer | Shaohua Li <shli@fb.com> | Fri Jun 03 16:23:02 2016 -0700 |
tree | 3c22d041574d4fbeb9b97c401267028fd83c199a | |
parent | bb8bf15bd6f7c3432ce9ad631f2f59c49c1e1853 [diff] [blame] |
md: simplify the code with md_kick_rdev_from_array Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
diff --git a/drivers/md/md.c b/drivers/md/md.c index 25d4542..459f189 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c
@@ -2478,8 +2478,7 @@ if (add_journal) mddev_resume(mddev); if (err) { - unbind_rdev_from_array(rdev); - export_rdev(rdev); + md_kick_rdev_from_array(rdev); return err; } }