diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2016-06-03 05:32:05 +0200 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-06-04 01:23:02 +0200 |
commit | db76767213be6c6db1b1344621511e27e9984fbb (patch) | |
tree | 3c22d041574d4fbeb9b97c401267028fd83c199a /drivers/md | |
parent | md-cluster: fix deadlock issue when add disk to an recoverying array (diff) | |
download | linux-db76767213be6c6db1b1344621511e27e9984fbb.tar.xz linux-db76767213be6c6db1b1344621511e27e9984fbb.zip |
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 25d454285ee8..459f1899f383 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; } } |