提交 db767672 编写于 作者: G Guoqing Jiang 提交者: Shaohua Li

md: simplify the code with md_kick_rdev_from_array

Signed-off-by: NGuoqing Jiang <gqjiang@suse.com>
Signed-off-by: NShaohua Li <shli@fb.com>
上级 bb8bf15b
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册