md-cluster: send BITMAP_NEEDS_SYNC message if reshaping is interrupted
authorGuoqing Jiang <gqjiang@suse.com>
Thu, 18 Oct 2018 08:37:47 +0000 (16:37 +0800)
committerShaohua Li <shli@fb.com>
Thu, 18 Oct 2018 16:40:48 +0000 (09:40 -0700)
commitcb9ee154317b084a96a7c2b771d1688f39fc714c
treed6388ae05edc17fde448963052bb3b0edd61fb7d
parentcbce6863b6d04f6eac6b144bcfaaf11a189d6533
md-cluster: send BITMAP_NEEDS_SYNC message if reshaping is interrupted

We need to continue the reshaping if it was interrupted in
original node. So original node should call resync_bitmap
in case reshaping is aborted.

Then BITMAP_NEEDS_SYNC message is broadcasted to other nodes,
node which continues the reshaping should restart reshape from
mddev->reshape_position instead of from the first beginning.

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.c