]> git.ipfire.org Git - thirdparty/linux.git/commit
md-cluster/raid10: don't call remove_and_add_spares during reshaping stage
authorGuoqing Jiang <gqjiang@suse.com>
Thu, 18 Oct 2018 08:37:45 +0000 (16:37 +0800)
committerShaohua Li <shli@fb.com>
Thu, 18 Oct 2018 16:39:10 +0000 (09:39 -0700)
commitca1e98e04a8d6cefbe8ad138df806434de6de7f3
treea08f7a5f0256f406b6bbfc218ee4daa0b9a6dd58
parentaefb2e5fc2be590e6bef8985f3d175c3d38b0b77
md-cluster/raid10: don't call remove_and_add_spares during reshaping stage

remove_and_add_spares is not needed if reshape is
happening in another node, because raid10_add_disk
called inside raid10_start_reshape would handle the
role changes of disk. Plus, remove_and_add_spares
can't deal with the role change due to reshape.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c