DragonFly commits List (threaded) for 2009-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - move proc->p_lock, add lwp ucred caching
commit 0d355d3b49728a53cced9b5348b7320dfad58990
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Mon Dec 14 19:29:43 2009 -0800
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.
Summary of changes:
sys/kern/kern_exit.c | 11 +++++++++++
sys/kern/kern_fork.c | 4 +---
sys/kern/kern_resource.c | 20 ++++++++++++++++++++
sys/platform/pc32/i386/trap.c | 33 +++++++++++++++++++++++----------
sys/platform/pc64/x86_64/trap.c | 15 +++++++++++++++
sys/platform/vkernel/i386/trap.c | 15 +++++++++++++++
sys/sys/proc.h | 25 ++++++++++++++++---------
7 files changed, 101 insertions(+), 22 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0d355d3b49728a53cced9b5348b7320dfad58990
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]