From ad11d11dc27d939e10afdb65faf97fcbcb602465 Mon Sep 17 00:00:00 2001 From: oster Date: Fri, 4 Oct 2002 22:50:26 +0000 Subject: 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. --- sys/dev/raidframe/rf_engine.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/dev/raidframe') 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 -__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); -- cgit