Module Name:    src
Committed By:   uebayasi
Date:           Wed Feb  3 07:48:18 UTC 2010

Modified Files:
        src/sys/uvm: uvm_fault.c

Log Message:
uvm_fault_lower_generic_io: One missing mutex_exit(vmobjlock).  Found while
comparing this function with uvm_loanuobj().  (Part of) these should be
merged.


To generate a diff of this commit:
cvs rdiff -u -r1.156 -r1.157 src/sys/uvm/uvm_fault.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_fault.c
diff -u src/sys/uvm/uvm_fault.c:1.156 src/sys/uvm/uvm_fault.c:1.157
--- src/sys/uvm/uvm_fault.c:1.156	Tue Feb  2 18:49:23 2010
+++ src/sys/uvm/uvm_fault.c	Wed Feb  3 07:48:18 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_fault.c,v 1.156 2010/02/02 18:49:23 uebayasi Exp $	*/
+/*	$NetBSD: uvm_fault.c,v 1.157 2010/02/03 07:48:18 uebayasi Exp $	*/
 
 /*
  *
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.156 2010/02/02 18:49:23 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.157 2010/02/03 07:48:18 uebayasi Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -1873,6 +1873,7 @@
 		if (uobjpage->flags & PG_RELEASED) {
 			uvmexp.fltpgrele++;
 			uvm_pagefree(uobjpage);
+			mutex_exit(&uobj->vmobjlock);
 			return ERESTART;
 		}
 		uobjpage->flags &= ~(PG_BUSY|PG_WANTED);

Reply via email to