md-cluster: send BITMAP_NEEDS_SYNC when node is leaving cluster
authorGuoqing Jiang <gqjiang@suse.com>
Wed, 30 Sep 2015 16:09:18 +0000 (00:09 +0800)
committerGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 12 Oct 2015 06:32:27 +0000 (01:32 -0500)
commit099954119d53a24573d22b70a6ea22a0a279e689
tree782711b9e330893f6d4026692df8ece793028c3f
parentc40f341f1e7fd4eddcfc5881d94cfa8669071ee6
md-cluster: send BITMAP_NEEDS_SYNC when node is leaving cluster

Previously, BITMAP_NEEDS_SYNC message is sent when the resyc
aborts, but it could abort for different reasons, and not all
of reasons require another node to take over the resync ownship.

It is better make BITMAP_NEEDS_SYNC message only be sent when
the node is leaving cluster with dirty bitmap. And we also need
to ensure dlm connection is ok.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md-cluster.c