]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid1: Mark device replaceable when we see a write error.
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:13 +0000 (11:32 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:13 +0000 (11:32 +1100)
commitc7eefaffedcb7abeaea7903e62864ce52efdc941
tree3c02a2e788eb19c96dea90d4cf46cd994e295aac
parent739cde9686e610f5f33a992ef7cdc13c15a256a2
md/raid1: Mark device replaceable when we see a write error.

Now that Replaceable drives are replaced cleanly, mark a drive
as replaceable when we see a write error.  It might get failed soon so
the Replaceable flag is irrelevant, but if the write error is recorded
in the bad block log, we still want to activate any spare that might
be available.

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