Source-Changes-HG archive

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

[src/yamt-pagecache]: src/sys/uvm O->A loan fix



details:   https://anonhg.NetBSD.org/src/rev/7a885a2927ae
branches:  yamt-pagecache
changeset: 770850:7a885a2927ae
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Dec 28 13:21:27 2011 +0000

description:
O->A loan fix

diffstat:

 sys/uvm/uvm_loan.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 3825983f2bce -r 7a885a2927ae sys/uvm/uvm_loan.c
--- a/sys/uvm/uvm_loan.c        Wed Dec 28 13:20:19 2011 +0000
+++ b/sys/uvm/uvm_loan.c        Wed Dec 28 13:21:27 2011 +0000
@@ -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 @@
        **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++;



Home | Main Index | Thread Index | Old Index