aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2018-10-18 16:37:41 +0800
committerShaohua Li <shli@fb.com>2018-10-18 09:30:58 -0700
commitafd75628608337cf427a1f9ca0e46698a74f25d8 (patch)
treed778927816adb10c796ed609ba93a5736e6c7b44 /drivers/md/md.h
parentMD: fix invalid stored role for a disk - try2 (diff)
downloadlinux-dev-afd75628608337cf427a1f9ca0e46698a74f25d8.tar.xz
linux-dev-afd75628608337cf427a1f9ca0e46698a74f25d8.zip
md-cluster/raid10: resize all the bitmaps before start reshape
To support add disk under grow mode, we need to resize all the bitmaps of each node before reshape, so that we can ensure all nodes have the same view of the bitmap of the clustered raid. So after the master node resized the bitmap, it broadcast a message to other slave nodes, and it checks the size of each bitmap are same or not by compare pages. We can only continue the reshaping after all nodes update the bitmap to the same size (by checking the pages), otherwise revert bitmap size to previous value. The resize_bitmaps interface and BITMAP_RESIZE message are introduced in md-cluster.c 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/md.h')
0 files changed, 0 insertions, 0 deletions