Use VM_ALLOC_NOBUSY instead of calling vm_page_wakeup().
This commit is contained in:
parent
1b25a59886
commit
e24e0aa793
@ -1835,7 +1835,7 @@ retry_lookup:
|
|||||||
pg = vm_page_lookup(obj, pindex);
|
pg = vm_page_lookup(obj, pindex);
|
||||||
|
|
||||||
if (pg == NULL) {
|
if (pg == NULL) {
|
||||||
pg = vm_page_alloc(obj, pindex,
|
pg = vm_page_alloc(obj, pindex, VM_ALLOC_NOBUSY |
|
||||||
VM_ALLOC_NORMAL | VM_ALLOC_WIRED);
|
VM_ALLOC_NORMAL | VM_ALLOC_WIRED);
|
||||||
if (pg == NULL) {
|
if (pg == NULL) {
|
||||||
VM_OBJECT_UNLOCK(obj);
|
VM_OBJECT_UNLOCK(obj);
|
||||||
@ -1844,7 +1844,6 @@ retry_lookup:
|
|||||||
goto retry_lookup;
|
goto retry_lookup;
|
||||||
}
|
}
|
||||||
vm_page_lock_queues();
|
vm_page_lock_queues();
|
||||||
vm_page_wakeup(pg);
|
|
||||||
} else {
|
} else {
|
||||||
vm_page_lock_queues();
|
vm_page_lock_queues();
|
||||||
if (vm_page_sleep_if_busy(pg, TRUE, "sfpbsy"))
|
if (vm_page_sleep_if_busy(pg, TRUE, "sfpbsy"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user