diff options
author | NeilBrown <neilb@suse.de> | 2011-12-22 18:17:55 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-12-22 18:17:55 -0500 |
commit | 4ca40c2ce099e4f1ce35445994f49836662596c8 (patch) | |
tree | 7d6f2187e8d6aaab0cdcf4924017aeb9725d87b0 /net/dsa/mv88e6123_61_65.c | |
parent | 24afd80d99f80a79d8824d2805114b8b067e9823 (diff) |
md/raid10: Allow replacement device to be replace old drive.
When recovery finish and spare_active is called, check for a
replace that might have just become fully synced and mark it
as such, marking the original as failed.
Then when the original is removed, move the replacement into
its position.
This means that 'replacement' and spontaneously become NULL in some
situations. Make sure we check for those.
It also means that 'rdev' and 'replacement' could appear to be
identical - check for that too.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'net/dsa/mv88e6123_61_65.c')
0 files changed, 0 insertions, 0 deletions