]> 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>
Fri, 9 Dec 2011 03:27:09 +0000 (14:27 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:09 +0000 (14:27 +1100)
commit5ce1a37f5b30212d3fd7647040776894c1c9bd1d
treeb5dc5694299676a7f8409846beed197c9897b6fc
parent0a9fc65cc9c8ec125440d6ad3ab97c179e5d117f
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