md-cluster/raid10: set "do_balance = 0" if area is resyncing
authorGuoqing Jiang <gqjiang@suse.com>
Tue, 24 Oct 2017 07:11:50 +0000 (15:11 +0800)
committerShaohua Li <shli@fb.com>
Thu, 2 Nov 2017 04:32:22 +0000 (21:32 -0700)
commitd4098c7262a47f529765d89614484a957363d623
tree34b9c412ec89d504034ddab14f12d8d0a83be312
parentefa4b77b00b56138fb7e68d2fe8fd1b3c15cd503
md-cluster/raid10: set "do_balance = 0" if area is resyncing

Just like clustered raid1, it is impossible for cluster raid10
to choose the best device for read balance when the area of
array is resyncing. Because we cannot trust the data to be the
same on all devices at that time, so we choose just the first
one to use, so set do_balance to 0.

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