Hold the vm object's lock when performing vm_page_lookup().
This commit is contained in:
parent
3471677cc9
commit
bc5b057f6c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user