Source-Changes-HG archive

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

[src/netbsd-7]: src/sys/uvm Pull up following revision(s) (requested by chs i...



details:   https://anonhg.NetBSD.org/src/rev/463fcdc9f7ae
branches:  netbsd-7
changeset: 798889:463fcdc9f7ae
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jan 23 16:31:06 2015 +0000

description:
Pull up following revision(s) (requested by chs in ticket #447):
        sys/uvm/uvm_map.c: revision 1.332
skip busy anon pages in uvm_map_clean().
we shouldn't be messing with pages that someone else has busy,
and uvm_map_clean() is just advisory for amap mappings.

diffstat:

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

diffs (28 lines):

diff -r 92f5042b2bc9 -r 463fcdc9f7ae sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Fri Jan 23 16:29:36 2015 +0000
+++ b/sys/uvm/uvm_map.c Fri Jan 23 16:31:06 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.330 2014/07/18 12:36:57 christos Exp $   */
+/*     $NetBSD: uvm_map.c,v 1.330.2.1 2015/01/23 16:31:06 martin Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.330 2014/07/18 12:36:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.330.2.1 2015/01/23 16:31:06 martin Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvmhist.h"
@@ -3798,6 +3798,9 @@
                        if (pg == NULL) {
                                continue;
                        }
+                       if (pg->flags & PG_BUSY) {
+                               continue;
+                       }
 
                        switch (flags & (PGO_CLEANIT|PGO_FREE|PGO_DEACTIVATE)) {
 



Home | Main Index | Thread Index | Old Index