From 79f6ebe2337e1c5a701f0c740b3b9b04d5529d14 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 28 Nov 2009 00:50:09 +0000 Subject: [PATCH] Properly synchronize the previous change. --- sys/vm/vm_fault.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index f1f13a64021b..0a5a4125bef4 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -761,8 +761,10 @@ RetryFault:; 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.