o Move a call to vm_page_wakeup() inside the scope of the page queues lock.

This commit is contained in:
Alan Cox 2002-08-10 23:27:06 +00:00
parent 5aebb40291
commit a9911f9a0f

View File

@ -897,6 +897,7 @@ RetryFault:;
} else {
vm_page_activate(fs.m);
}
vm_page_wakeup(fs.m);
vm_page_unlock_queues();
mtx_lock_spin(&sched_lock);
if (curproc && (curproc->p_sflag & PS_INMEM) && curproc->p_stats) {
@ -911,7 +912,6 @@ RetryFault:;
/*
* Unlock everything, and return
*/
vm_page_wakeup(fs.m);
vm_object_deallocate(fs.first_object);
mtx_unlock(&Giant);
return (KERN_SUCCESS);