Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Feb 2009 17:57:36 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r188920 - user/alc/pagelock/sys/vm
Message-ID:  <200902221757.n1MHvaoV002483@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sun Feb 22 17:57:35 2009
New Revision: 188920
URL: http://svn.freebsd.org/changeset/base/188920

Log:
  Maintain the lock on the object containing the page being mapped.

Modified:
  user/alc/pagelock/sys/vm/vm_fault.c

Modified: user/alc/pagelock/sys/vm/vm_fault.c
==============================================================================
--- user/alc/pagelock/sys/vm/vm_fault.c	Sun Feb 22 15:03:29 2009	(r188919)
+++ user/alc/pagelock/sys/vm/vm_fault.c	Sun Feb 22 17:57:35 2009	(r188920)
@@ -1210,7 +1210,6 @@ vm_fault_copy_entry(dst_map, src_map, ds
 		pmap_copy_page(src_m, dst_m);
 		VM_OBJECT_UNLOCK(object);
 		dst_m->valid = VM_PAGE_BITS_ALL;
-		VM_OBJECT_UNLOCK(dst_object);
 
 		/*
 		 * Enter it in the pmap as a read and/or execute access.
@@ -1221,7 +1220,6 @@ vm_fault_copy_entry(dst_map, src_map, ds
 		/*
 		 * Mark it no longer busy, and put it on the active list.
 		 */
-		VM_OBJECT_LOCK(dst_object);
 		vm_page_lock_queues();
 		vm_page_activate(dst_m);
 		vm_page_unlock_queues();



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