md-cluster: introduce resync_info_get interface for sanity check
authorGuoqing Jiang <gqjiang@suse.com>
Thu, 18 Oct 2018 08:37:43 +0000 (16:37 +0800)
committerShaohua Li <shli@fb.com>
Thu, 18 Oct 2018 16:36:35 +0000 (09:36 -0700)
commit5ebaf80bc8d5826edcc2d1cea26a7d5a4b8f01dd
tree0e166faec3a57e864b364e3bbfd944b996998c36
parent7564beda19b3646d781934d04fc382b738053e6f
md-cluster: introduce resync_info_get interface for sanity check

Since the resync region from suspend_info means one node
is reshaping this area, so the position of reshape_progress
should be included in the area.

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-cluster.c
drivers/md/md-cluster.h
drivers/md/raid10.c