md/raid1: clear bad-block record when write succeeds.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:31:49 +0000 (11:31 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:31:49 +0000 (11:31 +1000)
commit4367af556133723d0f443e14ca8170d9447317cb
treed87bb40920f0f43cea586b7dd99b45f713ffd614
parent1f68f0c4b677ccd6935ff61e4e6888787505f8dc
md/raid1: 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>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
drivers/md/raid1.c
drivers/md/raid1.h