Source-Changes-HG archive

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

[src/yamt-pagecache]: src/sys/uvm fix swapoff locking



details:   https://anonhg.NetBSD.org/src/rev/c4bf48899fd2
branches:  yamt-pagecache
changeset: 770863:c4bf48899fd2
user:      yamt <yamt%NetBSD.org@localhost>
date:      Mon Jan 23 03:21:18 2012 +0000

description:
fix swapoff locking

diffstat:

 sys/uvm/uvm_anon.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r e56438faf2ca -r c4bf48899fd2 sys/uvm/uvm_anon.c
--- a/sys/uvm/uvm_anon.c        Wed Jan 18 02:09:05 2012 +0000
+++ b/sys/uvm/uvm_anon.c        Mon Jan 23 03:21:18 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_anon.c,v 1.62.2.2 2011/12/26 16:03:10 yamt Exp $   */
+/*     $NetBSD: uvm_anon.c,v 1.62.2.3 2012/01/23 03:21:18 yamt Exp $   */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_anon.c,v 1.62.2.2 2011/12/26 16:03:10 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_anon.c,v 1.62.2.3 2012/01/23 03:21:18 yamt Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -348,10 +348,7 @@
                wakeup(pg);
        }
 
-       mutex_exit(anon->an_lock);
-       if (uobj) {
-               mutex_exit(uobj->vmobjlock);
-       }
+       amap_unlock(amap);
        return false;
 }
 



Home | Main Index | Thread Index | Old Index