Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm skip busy anon pages in uvm_map_clean().
details: https://anonhg.NetBSD.org/src/rev/0ea58969758a
branches: trunk
changeset: 335782:0ea58969758a
user: chs <chs%NetBSD.org@localhost>
date: Fri Jan 23 16:13:53 2015 +0000
description:
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 6fd1b50f453c -r 0ea58969758a sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Fri Jan 23 15:17:58 2015 +0000
+++ b/sys/uvm/uvm_map.c Fri Jan 23 16:13:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.331 2014/10/26 01:42:07 christos Exp $ */
+/* $NetBSD: uvm_map.c,v 1.332 2015/01/23 16:13:53 chs 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.331 2014/10/26 01:42:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.332 2015/01/23 16:13:53 chs 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