Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm uvmfault_anonget: check uvm_reclaimable() where appr...



details:   https://anonhg.NetBSD.org/src/rev/bf0fcb3a7db2
branches:  trunk
changeset: 580520:bf0fcb3a7db2
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Apr 27 15:19:17 2005 +0000

description:
uvmfault_anonget: check uvm_reclaimable() where appropriate.

diffstat:

 sys/uvm/uvm_fault.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 9f127ceecbf2 -r bf0fcb3a7db2 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c       Wed Apr 27 14:48:09 2005 +0000
+++ b/sys/uvm/uvm_fault.c       Wed Apr 27 15:19:17 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_fault.c,v 1.92 2005/04/12 13:11:45 yamt Exp $      */
+/*     $NetBSD: uvm_fault.c,v 1.93 2005/04/27 15:19:17 yamt Exp $      */
 
 /*
  *
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.92 2005/04/12 13:11:45 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.93 2005/04/27 15:19:17 yamt Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -377,6 +377,9 @@
                                uvmexp.fltnoram++;
                                UVMHIST_LOG(maphist, "  noram -- UVM_WAIT",0,
                                    0,0,0);
+                               if (!uvm_reclaimable()) {
+                                       return ENOMEM;
+                               }
                                uvm_wait("flt_noram1");
                        } else {
                                /* we set the PG_BUSY bit */



Home | Main Index | Thread Index | Old Index