md-cluster/bitmap: don't call md_bitmap_sync_with_cluster during reshaping stage
commitcbce6863b6d04f6eac6b144bcfaaf11a189d6533
authorGuoqing Jiang <gqjiang@suse.com>
Thu, 18 Oct 2018 08:37:46 +0000 (18 16:37 +0800)
committerShaohua Li <shli@fb.com>
Thu, 18 Oct 2018 16:40:01 +0000 (18 09:40 -0700)
treeb2e04e66efd2ff10406e86b975a944fffda18bae
parentca1e98e04a8d6cefbe8ad138df806434de6de7f3
md-cluster/bitmap: don't call md_bitmap_sync_with_cluster during reshaping stage

When reshape is happening in one node, other nodes could receive
lots of RESYNCING messages, so md_bitmap_sync_with_cluster is called.

Since the resyncing window is typically small in these RESYNCING
messages, so WARN is always triggered, so we should not call the
func when reshape is happening.

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