kernel - Remove ad-hoc increment/decrement of vm->vm_sysref
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 10 Nov 2011 18:00:57 +0000 (10:00 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 10 Nov 2011 18:00:57 +0000 (10:00 -0800)
commitb0c15cdf199632dd1ff8a28f072af7e7bfcb9cec
tree902c92fa761c845190a051e98a3b5eaf1b51b34c
parent7e72902dd15def82ff1b6f3d5e1805c6fb3b43e7
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.
sys/emulation/linux/i386/linprocfs/linprocfs_misc.c
sys/emulation/linux/i386/linprocfs/linprocfs_subr.c
sys/kern/kern_exec.c
sys/kern/kern_kinfo.c
sys/kern/kern_proc.c
sys/vfs/procfs/procfs_mem.c
sys/vm/vm_glue.c