]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: write errors should be recorded as bad blocks if possible.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:39:22 +0000 (11:39 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:39:22 +0000 (11:39 +1000)
commitb2e0c844cf0c4ae9d691bb80fdf8ab4f61dfd348
tree45c7f9c538b5e196e389454286771f3beb8628ba
parent3f91020ff8dc19eeeb794bc197c404ab7d3919ec
md/raid5: write errors should be recorded as bad blocks if possible.

When a write error is detected, don't mark the device as failed
immediately but rather record the fact for handle_stripe to deal with.

Handle_stripe then attempts to record a bad block.  Only if that fails
does the device get marked as faulty.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c
drivers/md/raid5.h