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

This commit is contained in:
Alan Cox 2003-06-09 07:01:05 +00:00
parent 3471677cc9
commit bc5b057f6c

View File

@ -897,8 +897,10 @@ mincore(td, uap)
*/
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