diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2016-06-02 23:32:05 -0400 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-06-03 16:23:02 -0700 |
commit | db76767213be6c6db1b1344621511e27e9984fbb (patch) | |
tree | 3c22d041574d4fbeb9b97c401267028fd83c199a /drivers | |
parent | bb8bf15bd6f7c3432ce9ad631f2f59c49c1e1853 (diff) | |
download | op-kernel-dev-db76767213be6c6db1b1344621511e27e9984fbb.zip op-kernel-dev-db76767213be6c6db1b1344621511e27e9984fbb.tar.gz |
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')
-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 25d4542..459f189 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; } } |