Move from struct proc to process the reference-count-holding pointers
authorguenther <guenther@openbsd.org>
Thu, 15 May 2014 03:52:25 +0000 (03:52 +0000)
committerguenther <guenther@openbsd.org>
Thu, 15 May 2014 03:52:25 +0000 (03:52 +0000)
commit924be1137c5a246ba6fdb1d17417b0ce1a94c872
treec6c2f7f5cabe3f26dcfea6eacc4b8dc50b1a7b04
parentc833d94866232a4a304f54e7cb8f024e0a80c671
Move from struct proc to process the reference-count-holding pointers
to the process's vmspace and filedescs.  struct proc continues to
keep copies of the pointers, copying them on fork, clearing them
on exit, and (for vmspace) refreshing on exec.
Also, make uvm_swapout_threads() thread aware, eliminating p_swtime
in kernel.

particular testing by ajacoutot@ and sebastia@
14 files changed:
sys/arch/vax/vax/pmap.c
sys/kern/init_main.c
sys/kern/kern_descrip.c
sys/kern/kern_exec.c
sys/kern/kern_exit.c
sys/kern/kern_fork.c
sys/kern/kern_proc.c
sys/kern/sched_bsd.c
sys/sys/filedesc.h
sys/sys/proc.h
sys/sys/sysctl.h
sys/uvm/uvm_extern.h
sys/uvm/uvm_glue.c
sys/uvm/uvm_map.c