Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2013 18:49:43 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250745 - head/sys/vm
Message-ID:  <201305171849.r4HInhUR072528@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Fri May 17 18:49:43 2013
New Revision: 250745
URL: http://svnweb.freebsd.org/changeset/base/250745

Log:
  Relax the object locking assertion in vm_page_lookup().  Now that a radix
  tree is used to maintain the object's collection of resident pages,
  vm_page_lookup() no longer needs an exclusive lock.
  
  Reviewed by:    attilio
  Sponsored by:   EMC / Isilon Storage Division

Modified:
  head/sys/vm/vm_page.c

Modified: head/sys/vm/vm_page.c
==============================================================================
--- head/sys/vm/vm_page.c	Fri May 17 17:45:00 2013	(r250744)
+++ head/sys/vm/vm_page.c	Fri May 17 18:49:43 2013	(r250745)
@@ -942,7 +942,7 @@ vm_page_t
 vm_page_lookup(vm_object_t object, vm_pindex_t pindex)
 {
 
-	VM_OBJECT_ASSERT_WLOCKED(object);
+	VM_OBJECT_ASSERT_LOCKED(object);
 	return (vm_radix_lookup(&object->rtree, pindex));
 }
 



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