Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Apr 2010 16:20:14 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207438 - head/sys/vm
Message-ID:  <201004301620.o3UGKE1n016671@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Apr 30 16:20:14 2010
New Revision: 207438
URL: http://svn.freebsd.org/changeset/base/207438

Log:
  Unlock page lock instead of recursively locking it.

Modified:
  head/sys/vm/vm_fault.c

Modified: head/sys/vm/vm_fault.c
==============================================================================
--- head/sys/vm/vm_fault.c	Fri Apr 30 15:22:52 2010	(r207437)
+++ head/sys/vm/vm_fault.c	Fri Apr 30 16:20:14 2010	(r207438)
@@ -1284,19 +1284,19 @@ vm_fault_copy_entry(vm_map_t dst_map, vm
 			vm_page_lock_queues();
 			vm_page_unwire(src_m, 0);
 			vm_page_unlock_queues();
-			vm_page_lock(src_m);
+			vm_page_unlock(src_m);
 
 			vm_page_lock(dst_m);
 			vm_page_lock_queues();
 			vm_page_wire(dst_m);
 			vm_page_unlock_queues();
-			vm_page_lock(dst_m);
+			vm_page_unlock(dst_m);
 		} else {
 			vm_page_lock(dst_m);
 			vm_page_lock_queues();
 			vm_page_activate(dst_m);
 			vm_page_unlock_queues();
-			vm_page_lock(dst_m);
+			vm_page_unlock(dst_m);
 		}
 		vm_page_wakeup(dst_m);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004301620.o3UGKE1n016671>