Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Since we are unlocking the lock before sle...
details: https://anonhg.NetBSD.org/src/rev/3a0a15f4c9f7
branches: trunk
changeset: 537557:3a0a15f4c9f7
user: oster <oster%NetBSD.org@localhost>
date: Wed Oct 02 14:38:53 2002 +0000
description:
Since we are unlocking the lock before sleeping, there is no need
to use ltsleep() when a tsleep() will suffice. Makes RAIDframe+LOCKDEBUG
play together much better.
diffstat:
sys/dev/raidframe/rf_engine.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 69f8486c6e00 -r 3a0a15f4c9f7 sys/dev/raidframe/rf_engine.c
--- a/sys/dev/raidframe/rf_engine.c Wed Oct 02 14:26:03 2002 +0000
+++ b/sys/dev/raidframe/rf_engine.c Wed Oct 02 14:38:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_engine.c,v 1.19 2002/09/23 04:19:05 oster Exp $ */
+/* $NetBSD: rf_engine.c,v 1.20 2002/10/02 14:38:53 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.19 2002/09/23 04:19:05 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.20 2002/10/02 14:38:53 oster Exp $");
#include "rf_threadstuff.h"
@@ -800,7 +800,7 @@
while (!raidPtr->shutdown_engine &&
raidPtr->node_queue == NULL) {
DO_UNLOCK(raidPtr);
- DO_WAIT(raidPtr);
+ tsleep(&(raidPtr->node_queue), PRIBIO, "rfwcond", 0);
DO_LOCK(raidPtr);
}
}
Home |
Main Index |
Thread Index |
Old Index