Monitor: array that has disappeared doesn't need spares

If a degraded array disappears we still have it in statelist
with active<raid but it is pointless to look for spares for it.

Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Anna Czarnowska 2010-11-26 14:31:15 +01:00 committed by NeilBrown
parent a1bb206520
commit ef15641fb5
1 changed files with 1 additions and 1 deletions

View File

@ -879,7 +879,7 @@ static void try_spare_migration(struct state *statelist, struct alert_info *info
link_containers_with_subarrays(statelist);
for (st = statelist; st; st = st->next)
if (st->active < st->raid &&
st->spare == 0) {
st->spare == 0 && !st->err) {
struct domainlist *domlist = NULL;
int d;
struct state *to = st;