Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Match locking notes with reality.



details:   https://anonhg.NetBSD.org/src/rev/591b079a0ec2
branches:  trunk
changeset: 828469:591b079a0ec2
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Dec 15 16:03:29 2017 +0000

description:
Match locking notes with reality.
misc_lock is used to protect vm_refcnt.

ok chuq

diffstat:

 sys/uvm/uvm_extern.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 000b6ca0f985 -r 591b079a0ec2 sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h      Fri Dec 15 11:49:32 2017 +0000
+++ b/sys/uvm/uvm_extern.h      Fri Dec 15 16:03:29 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_extern.h,v 1.207 2017/12/02 08:15:43 mrg Exp $     */
+/*     $NetBSD: uvm_extern.h,v 1.208 2017/12/15 16:03:29 maya Exp $    */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -552,7 +552,7 @@
 struct vmspace {
        struct  vm_map vm_map;  /* VM address map */
        int     vm_refcnt;      /* number of references *
-                                * note: protected by vm_map.ref_lock */
+                                * note: protected by vm_map.misc_lock */
        void *  vm_shm;         /* SYS5 shared memory private data XXX */
 /* we copy from vm_startcopy to the end of the structure on fork */
 #define vm_startcopy vm_rssize



Home | Main Index | Thread Index | Old Index