summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-07-28 11:39:24 +1000
committerNeilBrown <neilb@suse.de>2011-07-28 11:39:24 +1000
commitbd870a16c5946d86126f7203db3c73b71de0a1d8 (patch)
tree3492f61a441266c796b8a08ec30c06f7f6f27fbc /drivers/md/raid10.h
parent749c55e942d91cb27045fe2eb313aa5afe68ae0b (diff)
downloadlinux-bd870a16c5946d86126f7203db3c73b71de0a1d8.tar.gz
linux-bd870a16c5946d86126f7203db3c73b71de0a1d8.tar.bz2
linux-bd870a16c5946d86126f7203db3c73b71de0a1d8.zip
md/raid10: Handle write errors by updating badblock log.
When we get a write error (in the data area, not in metadata), update the badblock log rather than failing the whole device. As the write may well be many blocks, we trying writing each block individually and only log the ones which fail. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid10.h')
-rw-r--r--drivers/md/raid10.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid10.h b/drivers/md/raid10.h
index d8b7f9af92d5..79cb52a0d4a2 100644
--- a/drivers/md/raid10.h
+++ b/drivers/md/raid10.h
@@ -139,4 +139,5 @@ struct r10bio_s {
* known-bad-block records, we set this flag.
*/
#define R10BIO_MadeGood 5
+#define R10BIO_WriteError 6
#endif