If the DAG failed, need to make sure we wipe the dagList structures too.
This commit is contained in:
parent
cb35afd77e
commit
7e8ad96008
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: rf_states.c,v 1.33 2004/03/21 21:20:46 oster Exp $ */
|
/* $NetBSD: rf_states.c,v 1.34 2004/03/22 20:28:57 oster Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -27,7 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: rf_states.c,v 1.33 2004/03/21 21:20:46 oster Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: rf_states.c,v 1.34 2004/03/22 20:28:57 oster Exp $");
|
||||||
|
|
||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
|
|
||||||
@ -620,6 +620,7 @@ rf_State_ProcessDAG(RF_RaidAccessDesc_t *desc)
|
|||||||
for (i = 0; i < desc->numStripes; i++) {
|
for (i = 0; i < desc->numStripes; i++) {
|
||||||
rf_FreeDAG(dagList->dags);
|
rf_FreeDAG(dagList->dags);
|
||||||
temp = dagList;
|
temp = dagList;
|
||||||
|
rf_FreeDAGList(temp);
|
||||||
dagList = dagList->next;
|
dagList = dagList->next;
|
||||||
}
|
}
|
||||||
rf_MarkFailuresInASMList(raidPtr, asmh);
|
rf_MarkFailuresInASMList(raidPtr, asmh);
|
||||||
|
Loading…
Reference in New Issue
Block a user