md-cluster: transfer the resync ownership to another node
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 10 Jul 2015 08:54:04 +0000 (16:54 +0800)
committerNeilBrown <neilb@suse.com>
Mon, 31 Aug 2015 17:41:12 +0000 (19:41 +0200)
commitdc737d7c3d62d2cd2b62c7739aaa7604330c3dd8
treeeb08d1d362a790b99afa255464a0db3741558362
parent05cd0e51769a51f53c68e83976c83653f6ab1595
md-cluster: transfer the resync ownership to another node

When node A stops an array while the array is doing a resync, we need
to let another node B take over the resync task.

To achieve the goal, we need the A send an explicit BITMAP_NEEDS_SYNC
message to the cluster. And the node B which received that message will
invoke __recover_slot to do resync.

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