Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nathanw_sa]: src/sys/uvm Fix a very stupid and annoying bug: Don't try t...



details:   https://anonhg.NetBSD.org/src/rev/75d878ca0ae1
branches:  nathanw_sa
changeset: 504585:75d878ca0ae1
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Mon Mar 19 20:46:57 2001 +0000

description:
Fix a very stupid and annoying bug: Don't try to uvm_fault_unwire() a
LWP's u-area twice.

Thirty lashes with a wet noodle for this one.

diffstat:

 sys/uvm/uvm_glue.c |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (23 lines):

diff -r bf0177d17f19 -r 75d878ca0ae1 sys/uvm/uvm_glue.c
--- a/sys/uvm/uvm_glue.c        Mon Mar 19 17:45:02 2001 +0000
+++ b/sys/uvm/uvm_glue.c        Mon Mar 19 20:46:57 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_glue.c,v 1.44.2.1 2001/03/05 22:50:10 nathanw Exp $        */
+/*     $NetBSD: uvm_glue.c,v 1.44.2.2 2001/03/19 20:46:57 nathanw Exp $        */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -610,13 +610,6 @@
        cpu_swapout(l);
 
        /*
-        * Unwire the to-be-swapped process's user struct and kernel stack.
-        */
-       addr = (vaddr_t)l->l_addr;
-       uvm_fault_unwire(kernel_map, addr, addr + USPACE); /* !P_INMEM */
-       pmap_collect(vm_map_pmap(&p->p_vmspace->vm_map));
-
-       /*
         * Mark it as (potentially) swapped out.
         */
        SCHED_LOCK(s);



Home | Main Index | Thread Index | Old Index