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
This commit is contained in:
Alan Cox 2013-05-17 18:49:43 +00:00
parent 613c4afd62
commit 767a6420bc

View file

@ -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));
}