md/raid10: clear bad-block record when write succeeds.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:39:24 +0000 (11:39 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:39:24 +0000 (11:39 +1000)
commit749c55e942d91cb27045fe2eb313aa5afe68ae0b
treeddf80a1eb3ef9005bc209c1c4946916b89c22a33
parentd4432c23be957ff061f7b23fd60e8506cb472a55
md/raid10: clear bad-block record when write succeeds.

If we succeed in writing to a block that was recorded as
being bad, we clear the bad-block record.

This requires some delayed handling as the bad-block-list update has
to happen in process-context.

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