summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-08-10 23:27:06 +0000
committeralc <alc@FreeBSD.org>2002-08-10 23:27:06 +0000
commitfe8b5e270e3f64045f1d22797e60b4f08ecefd2a (patch)
tree81a02b0ef0c367b16c1cc362e6889186d86ad816 /sys/vm/vm_fault.c
parentc154930f1967d6f637c928047218a1acebff7239 (diff)
downloadFreeBSD-src-fe8b5e270e3f64045f1d22797e60b4f08ecefd2a.zip
FreeBSD-src-fe8b5e270e3f64045f1d22797e60b4f08ecefd2a.tar.gz
o Move a call to vm_page_wakeup() inside the scope of the page queues lock.
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 0052614..e670dc4 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -897,6 +897,7 @@ readrest:
} 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 @@ readrest:
/*
* Unlock everything, and return
*/
- vm_page_wakeup(fs.m);
vm_object_deallocate(fs.first_object);
mtx_unlock(&Giant);
return (KERN_SUCCESS);
OpenPOWER on IntegriCloud