aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/raid/md_k.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@cse.unsw.edu.au>2005-09-09 19:23:45 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 19:39:10 -0400
commit8ddf9efe6708f3674f0ddfeb6425fd27bea109a2 (patch)
tree90862c8fa9f04cf98423b3da1b2c5d1f01a7310d /include/linux/raid/md_k.h
parent36fa30636fb84b209210299684e1be66d9e58217 (diff)
[PATCH] md: support write-mostly device in raid1
This allows a device in a raid1 to be marked as "write mostly". Read requests will only be sent if there is no other option. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/raid/md_k.h')
-rw-r--r--include/linux/raid/md_k.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h
index 817062bf7352..7ef78e15ce04 100644
--- a/include/linux/raid/md_k.h
+++ b/include/linux/raid/md_k.h
@@ -181,6 +181,9 @@ struct mdk_rdev_s
181 int faulty; /* if faulty do not issue IO requests */ 181 int faulty; /* if faulty do not issue IO requests */
182 int in_sync; /* device is a full member of the array */ 182 int in_sync; /* device is a full member of the array */
183 183
184 unsigned long flags; /* Should include faulty and in_sync here. */
185#define WriteMostly 4 /* Avoid reading if at all possible */
186
184 int desc_nr; /* descriptor index in the superblock */ 187 int desc_nr; /* descriptor index in the superblock */
185 int raid_disk; /* role of device in array */ 188 int raid_disk; /* role of device in array */
186 int saved_raid_disk; /* role that device used to have in the 189 int saved_raid_disk; /* role that device used to have in the