]> 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>
Fri, 9 Dec 2011 03:27:05 +0000 (14:27 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:05 +0000 (14:27 +1100)
commit78214d3492ea37813c1d2d0871989f512ecaf92e
tree9d79d792b2baaf6a3a4f4b30dffc88865acf7c1b
parentb1a8069846ace5cba92104a0c84e7223f9d29858
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