Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm uvm_fault_lower_generic_io: One missing mutex_exit(v...



details:   https://anonhg.NetBSD.org/src/rev/033df0752fc5
branches:  trunk
changeset: 751389:033df0752fc5
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Wed Feb 03 07:48:18 2010 +0000

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

diffstat:

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

diffs (26 lines):

diff -r f9279af62bf1 -r 033df0752fc5 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c       Wed Feb 03 06:25:54 2010 +0000
+++ b/sys/uvm/uvm_fault.c       Wed Feb 03 07:48:18 2010 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index