]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid5: Mark device replaceable when we see a write error.
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:09 +0000 (11:32 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:09 +0000 (11:32 +1100)
commitd1fac196c92528cfc90a4e15946e23993478e939
tree5ac79d29f3b78cd765e452e9ef0ff0e695ade937
parent9b9209ccb3b5628e26a7e5c1366a5d58ed59a13e
md/raid5: 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/raid5.c