[PATCH] md: return a non-zero error to bi_end_io as appropriate in raid5
authorNeilBrown <neilb@suse.de>
Sun, 10 Dec 2006 10:20:51 +0000 (02:20 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sun, 10 Dec 2006 17:57:21 +0000 (09:57 -0800)
commitc2b00852fbae4f8c45c2651530ded3bd01bde814
tree697a2087ffb1e5d3d81af628e818f9d943c4267f
parentb8c6b645563d641df91fdcfd84a9c73c91d75b61
[PATCH] md: return a non-zero error to bi_end_io as appropriate in raid5

Currently raid5 depends on clearing the BIO_UPTODATE flag to signal an error
to higher levels.  While this should be sufficient, it is safer to explicitly
set the error code as well - less room for confusion.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/raid5.c