summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-10-04 22:50:26 +0000
committeroster <oster@NetBSD.org>2002-10-04 22:50:26 +0000
commitad11d11dc27d939e10afdb65faf97fcbcb602465 (patch)
treec081b9a771e665379e7b3cc4cdc4686df2d6553d /sys/dev/raidframe
parent7e6e75483b9b4dd3a10bd0051e90c036dc7e2c90 (diff)
Undo the change from 1.16->1.17, and 1.19->1.20. The ltsleep and locking
that was there before before is just fine, and plays nicely with LOCKDEBUG now that we've added the raidio thread.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_engine.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/raidframe/rf_engine.c b/sys/dev/raidframe/rf_engine.c
index f5fab77e63d..148a675ae39 100644
--- a/sys/dev/raidframe/rf_engine.c
+++ b/sys/dev/raidframe/rf_engine.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_engine.c,v 1.23 2002/10/04 22:35:08 oster Exp $ */
+/* $NetBSD: rf_engine.c,v 1.24 2002/10/04 22:50:26 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.23 2002/10/04 22:35:08 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.24 2002/10/04 22:50:26 oster Exp $");
#include "rf_threadstuff.h"
@@ -834,9 +834,7 @@ DAGExecutionThread(RF_ThreadArg_t arg)
}
while (!raidPtr->shutdown_engine &&
raidPtr->node_queue == NULL) {
- DO_UNLOCK(raidPtr);
- tsleep(&(raidPtr->node_queue), PRIBIO, "rfwcond", 0);
- DO_LOCK(raidPtr);
+ DO_WAIT(raidPtr);
}
}
DO_UNLOCK(raidPtr);