Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern call pmap_update() after pmap_enter()s
details: https://anonhg.NetBSD.org/src/rev/209fd2abdfa9
branches: trunk
changeset: 515250:209fd2abdfa9
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Sep 20 19:09:13 2001 +0000
description:
call pmap_update() after pmap_enter()s
ALWAYS call uvm_unloanpage() in cleanup - it's necessary even
in pipe_loan_free() case, since uvm_km_free() doesn't seem
to implicitly unloan the loaned pages
diffstat:
sys/kern/sys_pipe.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 635cf4dae01f -r 209fd2abdfa9 sys/kern/sys_pipe.c
--- a/sys/kern/sys_pipe.c Thu Sep 20 16:57:43 2001 +0000
+++ b/sys/kern/sys_pipe.c Thu Sep 20 19:09:13 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_pipe.c,v 1.11 2001/07/26 14:14:28 jdolecek Exp $ */
+/* $NetBSD: sys_pipe.c,v 1.12 2001/09/20 19:09:13 jdolecek Exp $ */
/*
* Copyright (c) 1996 John S. Dyson
@@ -1060,6 +1060,7 @@
for(j=0; j < npages; j++, kva += PAGE_SIZE)
pmap_enter(pmap_kernel(), kva, res[j]->phys_addr,
VM_PROT_READ, 0);
+ pmap_update(pmap_kernel());
wpipe->pipe_state |= PIPE_DIRECTW;
error = 0;
@@ -1081,10 +1082,10 @@
cleanup:
pipelock(wpipe, 0);
+ if (res)
+ uvm_unloanpage(res, npages);
if (error || amountpipekva > maxpipekva)
pipe_loan_free(wpipe);
- else if (res)
- uvm_unloanpage(res, npages);
pipeunlock(wpipe);
if (error == EPIPE) {
Home |
Main Index |
Thread Index |
Old Index