md-cluster: only call kick_rdev_from_array after remove disk successfully
authorGuoqing Jiang <gqjiang@suse.com>
Mon, 12 Oct 2015 09:21:27 +0000 (17:21 +0800)
committerGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 12 Oct 2015 16:58:15 +0000 (11:58 -0500)
commita9720903d1415317e18f439917f760ec592f3e3b
tree54f05817f86eb319d167e4874ea8147edc4ea7b2
parent86b572770e7964f006d438c4e05008914e9db79b
md-cluster: only call kick_rdev_from_array after remove disk successfully

For cluster raid, we should not kick it from array if the disk can't be
remove from array successfully.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
drivers/md/md.c