fix swapoff locking yamt-pagecache
authoryamt <yamt@NetBSD.org>
Mon, 23 Jan 2012 03:21:18 +0000
branchyamt-pagecache
changeset 280348 6f8fa7922d37
parent 280347 b6e0c9b611b2
child 280349 a0c0b2522b57
fix swapoff locking
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;
 }