summaryrefslogtreecommitdiff
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index c341661b02de..aa1d0223593d 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -444,6 +444,7 @@ readrest:
else
firstpindex = fs.first_pindex - 2 * VM_FAULT_READ;
+ vm_page_lock_queues();
/*
* note: partially valid pages cannot be
* included in the lookahead - NFS piecemeal
@@ -471,7 +472,7 @@ readrest:
vm_page_cache(mt);
}
}
-
+ vm_page_unlock_queues();
ahead += behind;
behind = 0;
}