Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe rf_ValidateDAG isn't something that we wan...



details:   https://anonhg.NetBSD.org/src/rev/204cf62756dd
branches:  trunk
changeset: 534029:204cf62756dd
user:      oster <oster%NetBSD.org@localhost>
date:      Sat Jul 13 20:01:13 2002 +0000

description:
rf_ValidateDAG isn't something that we want to even consider
calling unless DEBUG is turned on.

diffstat:

 sys/dev/raidframe/rf_engine.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r b2b30d926a3d -r 204cf62756dd sys/dev/raidframe/rf_engine.c
--- a/sys/dev/raidframe/rf_engine.c     Sat Jul 13 19:59:26 2002 +0000
+++ b/sys/dev/raidframe/rf_engine.c     Sat Jul 13 20:01:13 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_engine.c,v 1.12 2001/11/13 07:11:14 lukem Exp $     */
+/*     $NetBSD: rf_engine.c,v 1.13 2002/07/13 20:01:13 oster Exp $     */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -55,7 +55,7 @@
  ****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.12 2001/11/13 07:11:14 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.13 2002/07/13 20:01:13 oster Exp $");
 
 #include "rf_threadstuff.h"
 
@@ -692,10 +692,12 @@
        if (dag->tracerec) {
                RF_ETIMER_START(dag->tracerec->timer);
        }
+#if DEBUG
        if (rf_engineDebug || rf_validateDAGDebug) {
                if (rf_ValidateDAG(dag))
                        RF_PANIC();
        }
+#endif
        if (rf_engineDebug) {
                printf("raid%d: Entering DispatchDAG\n", raidPtr->raidid);
        }



Home | Main Index | Thread Index | Old Index