Module Name:    src
Committed By:   matt
Date:           Mon May  7 18:31:55 UTC 2012

Modified Files:
        src/sys/uvm [matt-nb5-mips64]: uvm_pdaemon.c

Log Message:
Fix free wakeup


To generate a diff of this commit:
cvs rdiff -u -r1.93.4.2.4.14 -r1.93.4.2.4.15 src/sys/uvm/uvm_pdaemon.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_pdaemon.c
diff -u src/sys/uvm/uvm_pdaemon.c:1.93.4.2.4.14 src/sys/uvm/uvm_pdaemon.c:1.93.4.2.4.15
--- src/sys/uvm/uvm_pdaemon.c:1.93.4.2.4.14	Fri Apr 27 20:41:09 2012
+++ src/sys/uvm/uvm_pdaemon.c	Mon May  7 18:31:55 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_pdaemon.c,v 1.93.4.2.4.14 2012/04/27 20:41:09 matt Exp $	*/
+/*	$NetBSD: uvm_pdaemon.c,v 1.93.4.2.4.15 2012/05/07 18:31:55 matt Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.93.4.2.4.14 2012/04/27 20:41:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.93.4.2.4.15 2012/05/07 18:31:55 matt Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_readahead.h"
@@ -510,7 +510,7 @@ uvm_pageout(void *arg)
 			}
 
 		}
-		if (need_wakeup) {
+		if (need_wakeup || (!need_free && pdinfo->pd_waiters)) {
 			wakeup(&uvmexp.free);
 		}
 		KASSERT(!need_free || need_wakeup || !progress);

Reply via email to