Lock the vm object when freeing a vm page.
This commit is contained in:
parent
51b79512bb
commit
ec69a73039
@ -765,6 +765,7 @@ spec_getpages(ap)
|
||||
pmap_qremove(kva, pcount);
|
||||
|
||||
gotreqpage = 0;
|
||||
VM_OBJECT_LOCK(vp->v_object);
|
||||
vm_page_lock_queues();
|
||||
for (i = 0, toff = 0; i < pcount; i++, toff = nextoff) {
|
||||
nextoff = toff + PAGE_SIZE;
|
||||
@ -817,6 +818,7 @@ spec_getpages(ap)
|
||||
}
|
||||
}
|
||||
vm_page_unlock_queues();
|
||||
VM_OBJECT_UNLOCK(vp->v_object);
|
||||
if (!gotreqpage) {
|
||||
m = ap->a_m[ap->a_reqpage];
|
||||
printf(
|
||||
|
Loading…
x
Reference in New Issue
Block a user