kernel - move proc->p_lock, add lwp ucred caching
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 15 Dec 2009 03:29:43 +0000 (19:29 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 15 Dec 2009 03:29:43 +0000 (19:29 -0800)
commit0d355d3b49728a53cced9b5348b7320dfad58990
treee6e2c8770d707b5e6119f5f33bf7940deaff605f
parentfb5d6e269d49634015cfcda26285309a7bf582ae
kernel - move proc->p_lock, add lwp ucred caching

* Move p_lock out from the struct proc copy area, change it from a
  char to an int, and make PHOLD/PRELE MPSAFE.

* System calls now cache a read-only copy of p->p_ucred in
  lp->lwp_syscall_ucred.  This will be used by system call code
  to access the ucred in a MPSAFE manner.
sys/kern/kern_exit.c
sys/kern/kern_fork.c
sys/kern/kern_resource.c
sys/platform/pc32/i386/trap.c
sys/platform/pc64/x86_64/trap.c
sys/platform/vkernel/i386/trap.c
sys/sys/proc.h