]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2dc078315a62c5a30e0870c8b1f9b0c8dc6dcf5
treeeb08d1d362a790b99afa255464a0db3741558362
parent548d9cdc4c446f156d575c56a600014d847f63ea
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