Hold the vm object's lock when performing vm_page_lookup().

This commit is contained in:
alc 2003-06-09 07:01:05 +00:00
parent fd950733b7
commit f13256329b

View File

@ -897,8 +897,10 @@ RestartScan:
*/
offset = current->offset + (addr - current->start);
pindex = OFF_TO_IDX(offset);
VM_OBJECT_LOCK(current->object.vm_object);
m = vm_page_lookup(current->object.vm_object,
pindex);
VM_OBJECT_UNLOCK(current->object.vm_object);
vm_page_lock_queues();
/*
* if the page is resident, then gather information about