git: kernel - move proc->p_lock, add lwp ucred caching

看板DFBSD_commit作者時間16年前 (2009/12/15 12:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1B9me2UV (DFBSD_commit)