summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_kern.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r--sys/vm/vm_kern.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index c3a1312..2377355 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -419,8 +419,10 @@ retry:
*/
for (i = 0; i < size; i += PAGE_SIZE) {
m = vm_page_lookup(kmem_object, OFF_TO_IDX(offset + i));
+ vm_page_lock_queues();
vm_page_wire(m);
vm_page_wakeup(m);
+ vm_page_unlock_queues();
/*
* Because this is kernel_pmap, this call will not block.
*/
OpenPOWER on IntegriCloud