Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm A little spring cleaning in the unwire case of uvm_m...



details:   https://anonhg.NetBSD.org/src/rev/72dc65b785c5
branches:  trunk
changeset: 473311:72dc65b785c5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri May 28 22:54:12 1999 +0000

description:
A little spring cleaning in the unwire case of uvm_map_pageable().

diffstat:

 sys/uvm/uvm_map.c |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (34 lines):

diff -r 87f4f87f2926 -r 72dc65b785c5 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Fri May 28 21:01:42 1999 +0000
+++ b/sys/uvm/uvm_map.c Fri May 28 22:54:12 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.48 1999/05/28 20:49:51 thorpej Exp $     */
+/*     $NetBSD: uvm_map.c,v 1.49 1999/05/28 22:54:12 thorpej Exp $     */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -2066,10 +2066,11 @@
                 * now decrement the wiring count for each region.  if a region
                 * becomes completely unwired, unwire its physical pages and
                 * mappings.
+                *
+                * Note, uvm_fault_unwire() (called via uvm_map_entry_unwire())
+                * does not lock the map, so we don't have to do anything
+                * special regarding locking here.
                 */
-#if 0          /* not necessary: uvm_fault_unwire does not lock */
-               lock_set_recursive(&map->lock);
-#endif  /* XXXCDC */
 
                entry = start_entry;
                while ((entry != &map->header) && (entry->start < end)) {
@@ -2081,9 +2082,6 @@
                        
                        entry = entry->next;
                }
-#if 0 /* XXXCDC: not necessary, see above */
-               lock_clear_recursive(&map->lock);
-#endif
                vm_map_unlock(map);
                UVMHIST_LOG(maphist,"<- done (OK UNWIRE)",0,0,0,0);
                return(KERN_SUCCESS);



Home | Main Index | Thread Index | Old Index