]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] md: improvements to raid5 handling of read errors
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2005 05:39:31 +0000 (21:39 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:38 +0000 (07:56 -0800)
commit1192982ccb470dd18a66e540d4f0820799f6a6ad
tree4caae4532cda0412d2446eca8b036d4e0df447f8
parent016ffa6f66d3121568c5abadde81023a1c953203
[PATCH] md: improvements to raid5 handling of read errors

Two refinements to the 'attempt-overwrite-on-read-error' mechanism.
1/ If the array is read-only, don't attempt an over-write.
2/ If there are more than max_nr_stripes read errors on a device with
   no success, fail the drive.  This will make sure a dead
   drive will be eventually kicked even when we aren't trying
   to rewrite (which would normally kick a dead drive more quickly.

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/md.c
drivers/md/raid5.c
include/linux/raid/md_k.h