summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_fault.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index f1f13a6..0a5a412 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -761,8 +761,10 @@ vnode_locked:
fs.first_m->valid = VM_PAGE_BITS_ALL;
if (wired && (fault_flags &
VM_FAULT_CHANGE_WIRING) == 0) {
+ vm_page_lock_queues();
vm_page_wire(fs.first_m);
vm_page_unwire(fs.m, FALSE);
+ vm_page_unlock_queues();
}
/*
* We no longer need the old page or object.
OpenPOWER on IntegriCloud