Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Undo the change from 1.16->1.17, and 1.19-...
details: https://anonhg.NetBSD.org/src/rev/01db89c9ff0f
branches: trunk
changeset: 537712:01db89c9ff0f
user: oster <oster%NetBSD.org@localhost>
date: Fri Oct 04 22:50:26 2002 +0000
description:
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:
sys/dev/raidframe/rf_engine.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r 660277c8bbf7 -r 01db89c9ff0f sys/dev/raidframe/rf_engine.c
--- a/sys/dev/raidframe/rf_engine.c Fri Oct 04 22:46:29 2002 +0000
+++ b/sys/dev/raidframe/rf_engine.c Fri Oct 04 22:50:26 2002 +0000
@@ -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 @@
}
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);
Home |
Main Index |
Thread Index |
Old Index