summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.h
diff options
context:
space:
mode:
authormajianpeng <majianpeng@gmail.com>2013-11-14 05:16:18 +0100
committerNeilBrown <neilb@suse.de>2013-11-19 05:19:18 +0100
commitb364e3d048e49b1d177eb7ee7853e77aa0560464 (patch)
tree5d13c7e1a010f3976567bfbc3a1b6226b9db96d6 /drivers/md/raid1.h
parentmd: Convert use of typedef ctl_table to struct ctl_table (diff)
downloadlinux-b364e3d048e49b1d177eb7ee7853e77aa0560464.tar.xz
linux-b364e3d048e49b1d177eb7ee7853e77aa0560464.zip
raid1: Add a field array_frozen to indicate whether raid in freeze state.
Because the following patch will rewrite the content between normal IO and resync IO. So we used a parameter to indicate whether raid is in freeze array. Signed-off-by: Jianpeng Ma <majianpeng@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid1.h')
-rw-r--r--drivers/md/raid1.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid1.h b/drivers/md/raid1.h
index 0ff3715fb7eb..331a98a231b4 100644
--- a/drivers/md/raid1.h
+++ b/drivers/md/raid1.h
@@ -65,6 +65,7 @@ struct r1conf {
int nr_waiting;
int nr_queued;
int barrier;
+ int array_frozen;
/* Set to 1 if a full sync is needed, (fresh device added).
* Cleared when a sync completes.