Suspend writes in RAID1 if within range
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Sat, 7 Jun 2014 07:39:37 +0000 (02:39 -0500)
committerGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 23 Feb 2015 15:59:07 +0000 (09:59 -0600)
commit589a1c491621ab81a1955d17d634636522c1b4c1
treeb476b0701562e54da42f4664f4ee81e8bb39f563
parente59721ccdc65dd4fbd8f311a063ecc8f6232dbcc
Suspend writes in RAID1 if within range

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

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

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
drivers/md/md-cluster.c
drivers/md/md-cluster.h
drivers/md/md.c
drivers/md/raid1.c