]> 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>
Thu, 15 Dec 2011 06:25:59 +0000 (17:25 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 15 Dec 2011 06:25:59 +0000 (17:25 +1100)
commit91a2f194faad281cda0a16f2324e55ba8ce76968
treec3baa75d219b5f07a6214d09648858bdfc6fbc3b
parentb17739c3794040e80c71331fef75f2141506cdc1
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