Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm uvm_page_unbusy should skip PGO_DONTCARE page; e.g.,...



details:   https://anonhg.NetBSD.org/src/rev/be430a554da0
branches:  trunk
changeset: 542359:be430a554da0
user:      enami <enami%NetBSD.org@localhost>
date:      Mon Jan 27 02:10:20 2003 +0000

description:
uvm_page_unbusy should skip PGO_DONTCARE page; e.g., locked pgo_getpages
request may contain PGO_DONTCARE and nfs_getpages may unbusy them on error.

Fix is provided in PR#20028 by YAMAMOTO Takashi.  (and same one is approved
by chuq while ago in private mail).  It was my fault to forget to commit.

diffstat:

 sys/uvm/uvm_page.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c48de6c96c29 -r be430a554da0 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Mon Jan 27 01:39:36 2003 +0000
+++ b/sys/uvm/uvm_page.c        Mon Jan 27 02:10:20 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.c,v 1.81 2002/11/09 20:11:01 thorpej Exp $    */
+/*     $NetBSD: uvm_page.c,v 1.82 2003/01/27 02:10:20 enami Exp $      */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.81 2002/11/09 20:11:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.82 2003/01/27 02:10:20 enami Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -1332,7 +1332,7 @@
 
        for (i = 0; i < npgs; i++) {
                pg = pgs[i];
-               if (pg == NULL) {
+               if (pg == NULL || pg == PGO_DONTCARE) {
                        continue;
                }
                if (pg->flags & PG_WANTED) {



Home | Main Index | Thread Index | Old Index