Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm uvm_pagealloc_strat: fix diagnostic assert. Reporte...



details:   https://anonhg.NetBSD.org/src/rev/68f4203a511f
branches:  trunk
changeset: 766108:68f4203a511f
user:      rmind <rmind%NetBSD.org@localhost>
date:      Wed Jun 15 19:46:11 2011 +0000

description:
uvm_pagealloc_strat: fix diagnostic assert.  Reported by drochner@.

diffstat:

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

diffs (28 lines):

diff -r 8cb94b883c26 -r 68f4203a511f sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Wed Jun 15 18:16:48 2011 +0000
+++ b/sys/uvm/uvm_page.c        Wed Jun 15 19:46:11 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.c,v 1.174 2011/06/12 03:36:03 rmind Exp $     */
+/*     $NetBSD: uvm_page.c,v 1.175 2011/06/15 19:46:11 rmind Exp $     */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.174 2011/06/12 03:36:03 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.175 2011/06/15 19:46:11 rmind Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvmhist.h"
@@ -1192,7 +1192,8 @@
        KASSERT(anon == NULL || (flags & UVM_FLAG_COLORMATCH) || off == 0);
        KASSERT(off == trunc_page(off));
        KASSERT(obj == NULL || mutex_owned(obj->vmobjlock));
-       KASSERT(anon == NULL || mutex_owned(anon->an_lock));
+       KASSERT(anon == NULL || anon->an_lock == NULL ||
+           mutex_owned(anon->an_lock));
 
        mutex_spin_enter(&uvm_fpageqlock);
 



Home | Main Index | Thread Index | Old Index