summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-08-11 19:16:57 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-08-11 19:16:57 +0000
commitdde1f780786f32c4dfa1a8ecfa7cfa53f1c0da44 (patch)
treeb30040ae16a1bc506853daf06bb382490374bbc4 /sys
parent25d454b4bb78de6e779ffaa5b342ac5d72f97e85 (diff)
Do not pmap_update(pmap_kernel()) within the `create mappings' loop, but only
once after it is over.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_biomem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_biomem.c b/sys/kern/vfs_biomem.c
index 86044080305..c2ccb1067c2 100644
--- a/sys/kern/vfs_biomem.c
+++ b/sys/kern/vfs_biomem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_biomem.c,v 1.29 2014/03/28 17:57:11 mpi Exp $ */
+/* $OpenBSD: vfs_biomem.c,v 1.30 2014/08/11 19:16:56 miod Exp $ */
/*
* Copyright (c) 2007 Artur Grabowski <art@openbsd.org>
@@ -139,8 +139,8 @@ buf_map(struct buf *bp)
pmap_kenter_pa(va + ptoa(i), VM_PAGE_TO_PHYS(pg),
VM_PROT_READ|VM_PROT_WRITE);
- pmap_update(pmap_kernel());
}
+ pmap_update(pmap_kernel());
bp->b_data = (caddr_t)va;
} else {
TAILQ_REMOVE(&buf_valist, bp, b_valist);