summaryrefslogtreecommitdiff
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-07-28 05:31:48 +0400
committerNeilBrown <neilb@suse.de>2011-07-28 05:31:48 +0400
commitd7a9d443bc8a75a24873c0506f50051edfedc714 (patch)
tree6255771f6cca87698dcc8eb11d62e7fc217b8d0b /drivers/md/md.h
parent06f603851fa90bcd236328438278d4dc8b655495 (diff)
downloadlinux-d7a9d443bc8a75a24873c0506f50051edfedc714.tar.xz
md: add 'write_error' flag to component devices.
If a device has ever seen a write error, we will want to handle known-bad-blocks differently. So create an appropriate state flag and export it via sysfs. Signed-off-by: NeilBrown <neilb@suse.de> Reviewed-by: Namhyung Kim <namhyung@gmail.com>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index 7c3192c0a29a..fa4b607854ac 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -84,6 +84,9 @@ struct mdk_rdev_s
#define Blocked 8 /* An error occurred on an externally
* managed array, don't allow writes
* until it is cleared */
+#define WriteErrorSeen 9 /* A write error has been seen on this
+ * device
+ */
wait_queue_head_t blocked_wait;
int desc_nr; /* descriptor index in the superblock */