projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d19c2ee
)
[PATCH] md: add error reporting to superblock write failure
author
NeilBrown
<
[email protected]
>
Tue, 3 Oct 2006 08:16:03 +0000
(
01:16
-0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 3 Oct 2006 15:04:19 +0000
(08:04 -0700)
Signed-off-by: Neil Brown <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 40cb79ac40393c5ff3187ee9952a256984216e65..38a0a5741d526cc4491a2c76dbdfe786ac58f0d5 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-389,8
+389,12
@@
static int super_written(struct bio *bio, unsigned int bytes_done, int error)
if (bio->bi_size)
return 1;
- if (error || !test_bit(BIO_UPTODATE, &bio->bi_flags))
+ if (error || !test_bit(BIO_UPTODATE, &bio->bi_flags)) {
+ printk("md: super_written gets error=%d, uptodate=%d\n",
+ error, test_bit(BIO_UPTODATE, &bio->bi_flags));
+ WARN_ON(test_bit(BIO_UPTODATE, &bio->bi_flags));
md_error(mddev, rdev);
+ }
if (atomic_dec_and_test(&mddev->pending_writes))
wake_up(&mddev->sb_wait);