summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 1f1914c..b8a156c 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -3579,7 +3579,9 @@ vmapbuf(struct buf *bp)
if (pa == 0)
panic("vmapbuf: page not present");
m = PHYS_TO_VM_PAGE(pa);
+ vm_page_lock_queues();
vm_page_hold(m);
+ vm_page_unlock_queues();
bp->b_pages[pidx] = m;
}
if (pidx > btoc(MAXPHYS))
OpenPOWER on IntegriCloud