diff options
author | majianpeng <majianpeng@gmail.com> | 2013-11-14 08:16:18 +0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-11-19 08:19:18 +0400 |
commit | b364e3d048e49b1d177eb7ee7853e77aa0560464 (patch) | |
tree | 5d13c7e1a010f3976567bfbc3a1b6226b9db96d6 /drivers/md/raid1.h | |
parent | 82592c38a85889fc9b52bf67afd4f6a336858a96 (diff) | |
download | linux-b364e3d048e49b1d177eb7ee7853e77aa0560464.tar.xz |
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.h | 1 |
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. |