git: kernel - Remove ad-hoc increment/decrement of vm->vm_sysref

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Nov 10 10:06:42 PST 2011


commit b0c15cdf199632dd1ff8a28f072af7e7bfcb9cec
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Nov 10 10:00:57 2011 -0800

    kernel - Remove ad-hoc increment/decrement of vm->vm_sysref
    
    * Remove the ad-hoc increment/decrement of vm->vm_sysref when pulling data
      out for a ps.  Acquire p->p_token instead.
    
      This is an attempt to determine whether these adhoc operations are
      responsible for causing a race that results in the seg-fault issue we
      see on monster.

Summary of changes:
 .../linux/i386/linprocfs/linprocfs_misc.c          |    6 ++++
 .../linux/i386/linprocfs/linprocfs_subr.c          |   16 ++++++++--
 sys/kern/kern_exec.c                               |    2 +-
 sys/kern/kern_kinfo.c                              |   13 +++++---
 sys/kern/kern_proc.c                               |    2 +
 sys/vfs/procfs/procfs_mem.c                        |   30 +++++++++++++------
 sys/vm/vm_glue.c                                   |   19 +++---------
 7 files changed, 55 insertions(+), 33 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b0c15cdf199632dd1ff8a28f072af7e7bfcb9cec


-- 
DragonFly BSD source repository





More information about the Commits mailing list