Module Name:    src
Committed By:   yamt
Date:           Wed Dec 28 13:21:28 UTC 2011

Modified Files:
        src/sys/uvm [yamt-pagecache]: uvm_loan.c

Log Message:
O->A loan fix


To generate a diff of this commit:
cvs rdiff -u -r1.81.2.6 -r1.81.2.7 src/sys/uvm/uvm_loan.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_loan.c
diff -u src/sys/uvm/uvm_loan.c:1.81.2.6 src/sys/uvm/uvm_loan.c:1.81.2.7
--- src/sys/uvm/uvm_loan.c:1.81.2.6	Wed Dec 28 13:20:19 2011
+++ src/sys/uvm/uvm_loan.c	Wed Dec 28 13:21:27 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_loan.c,v 1.81.2.6 2011/12/28 13:20:19 yamt Exp $	*/
+/*	$NetBSD: uvm_loan.c,v 1.81.2.7 2011/12/28 13:21:27 yamt Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_loan.c,v 1.81.2.6 2011/12/28 13:20:19 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_loan.c,v 1.81.2.7 2011/12/28 13:21:27 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -431,10 +431,6 @@ uvm_loananon(struct uvm_faultinfo *ufi, 
 	**output = pg;
 	(*output)++;
 
-	/* unlock and return success */
-	if (pg->uobject != NULL)
-		mutex_exit(pg->uobject->vmobjlock);
-
 	ucpu = uvm_cpu_get();
 	if (pg->uobject != NULL) {
 		ucpu->loan_oa++;

Reply via email to