summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-10-11 14:44:11 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-10-11 14:44:11 +0000
commitb4c3fd0e45d257f2fd92f85dd7870964d5df7cf1 (patch)
tree807f58c8863d89d653b084991a5cf7bd6a94358d
parent6828645865c24cd95f76e5ff2a80cc99575c1666 (diff)
Fix flawed logic when deciding if we should sleep when
we are below the low watermark or if we should try to use up all buffers.
-rw-r--r--sys/kern/vfs_bio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 60383440480..97be296ac4d 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_bio.c,v 1.44 2001/10/11 08:07:12 gluk Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.45 2001/10/11 14:44:10 art Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*-
@@ -848,8 +848,8 @@ start:
if (numdirtypages >= hidirtypages)
wakeup(&bd_req);
- if ((numcleanpages <= locleanpages)
- && (curproc != syncerproc || curproc != cleanerproc)) {
+ if ((numcleanpages <= locleanpages) &&
+ curproc != syncerproc && curproc != cleanerproc) {
needbuffer++;
error = tsleep(&needbuffer, slpflag|(PRIBIO+1), "getnewbuf",
slptimeo);