aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bitmap.h
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2016-05-02 11:50:12 -0400
committerShaohua Li <shli@fb.com>2016-05-04 15:39:35 -0400
commit18c9ff7f487efa8e88886bee21bd3516dde05bc5 (patch)
treeae819ad9bda782b06bfa86281cc432afef3134ff /drivers/md/bitmap.h
parentc9d65032282943d11b2773ed6f0279ba4820fed1 (diff)
md-cluster: sync bitmap when node received RESYNCING msg
If the node received RESYNCING message which means another node will perform resync with the area, then we don't want to do it again in another node. Let's set RESYNC_MASK and clear NEEDED_MASK for the region from old-low to new-low which has finished syncing, and the region from old-hi to new-hi is about to syncing, bitmap_sync_with_cluste is introduced for the purpose. Reviewed-by: NeilBrown <neilb@suse.com> Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/bitmap.h')
-rw-r--r--drivers/md/bitmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/bitmap.h b/drivers/md/bitmap.h
index 5e3fcd6ecf77..5b6dd63dda91 100644
--- a/drivers/md/bitmap.h
+++ b/drivers/md/bitmap.h
@@ -258,6 +258,9 @@ int bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks,
258void bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted); 258void bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted);
259void bitmap_close_sync(struct bitmap *bitmap); 259void bitmap_close_sync(struct bitmap *bitmap);
260void bitmap_cond_end_sync(struct bitmap *bitmap, sector_t sector, bool force); 260void bitmap_cond_end_sync(struct bitmap *bitmap, sector_t sector, bool force);
261void bitmap_sync_with_cluster(struct mddev *mddev,
262 sector_t old_lo, sector_t old_hi,
263 sector_t new_lo, sector_t new_hi);
261 264
262void bitmap_unplug(struct bitmap *bitmap); 265void bitmap_unplug(struct bitmap *bitmap);
263void bitmap_daemon_work(struct mddev *mddev); 266void bitmap_daemon_work(struct mddev *mddev);