Module Name: src
Committed By: martin
Date: Fri Jan 23 16:31:06 UTC 2015
Modified Files:
src/sys/uvm [netbsd-7]: uvm_map.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.330 -r1.330.2.1 src/sys/uvm/uvm_map.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_map.c
diff -u src/sys/uvm/uvm_map.c:1.330 src/sys/uvm/uvm_map.c:1.330.2.1
--- src/sys/uvm/uvm_map.c:1.330 Fri Jul 18 12:36:57 2014
+++ src/sys/uvm/uvm_map.c Fri Jan 23 16:31:06 2015
@@ -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 @@ uvm_map_clean(struct vm_map *map, vaddr_
if (pg == NULL) {
continue;
}
+ if (pg->flags & PG_BUSY) {
+ continue;
+ }
switch (flags & (PGO_CLEANIT|PGO_FREE|PGO_DEACTIVATE)) {