md-cluster: Suspend writes in RAID10 if within range
authorGuoqing Jiang <gqjiang@suse.com>
Tue, 24 Oct 2017 07:11:51 +0000 (15:11 +0800)
committerShaohua Li <shli@fb.com>
Thu, 2 Nov 2017 04:32:23 +0000 (21:32 -0700)
commitcb8a7a7e1098e74d36378b992a6d012668ec10d9
tree54461d8655ba8219f2c1bce3669a8503cd2e5c06
parentd4098c7262a47f529765d89614484a957363d623
md-cluster: Suspend writes in RAID10 if within range

If there is a resync going on, all nodes must suspend
writes to the range. This is recorded in suspend_info
and suspend_list.

If there is an I/O within the ranges of any of the
suspend_info, area_resyncing will return 1.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid10.c