From 0763dae8b5ff3ba6334fdcec8ff4a16db86c1b5e Mon Sep 17 00:00:00 2001 From: miod Date: Mon, 11 Aug 2014 19:16:56 +0000 Subject: [PATCH] Do not pmap_update(pmap_kernel()) within the `create mappings' loop, but only once after it is over. --- sys/kern/vfs_biomem.c | 4 ++-- 1 file 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 @@ -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); -- 2.20.1