Author: pluknet Date: Mon May 12 20:16:48 2014 New Revision: 265929 URL: http://svnweb.freebsd.org/changeset/base/265929
Log: MFC r227784,r227786: Use the acquired reference to the vmspace, remove XXXRW comments. Modified: stable/9/sys/kern/kern_proc.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/kern/kern_proc.c ============================================================================== --- stable/9/sys/kern/kern_proc.c Mon May 12 19:42:16 2014 (r265928) +++ stable/9/sys/kern/kern_proc.c Mon May 12 20:16:48 2014 (r265929) @@ -1992,7 +1992,7 @@ sysctl_kern_proc_ovmmap(SYSCTL_HANDLER_A } kve = malloc(sizeof(*kve), M_TEMP, M_WAITOK); - map = &p->p_vmspace->vm_map; /* XXXRW: More locking required? */ + map = &vm->vm_map; vm_map_lock_read(map); for (entry = map->header.next; entry != &map->header; entry = entry->next) { @@ -2164,7 +2164,7 @@ kern_proc_vmmap_out(struct proc *p, stru kve = malloc(sizeof(*kve), M_TEMP, M_WAITOK); error = 0; - map = &vm->vm_map; /* XXXRW: More locking required? */ + map = &vm->vm_map; vm_map_lock_read(map); for (entry = map->header.next; entry != &map->header; entry = entry->next) { _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"