git: kernel - use new td_ucred in numerous places

看板DFBSD_commit作者時間16年前 (2009/12/16 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 9910d07b2f8670a44edbe17863f961ffbc6ea537 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Tue Dec 15 10:43:48 2009 -0800 kernel - use new td_ucred in numerous places * Use curthread->td_ucred in numerous places, primarily system calls, where curproc->p_ucred was used before. * Clean up local variable use related to the above. * Adjust several places where p_ucred is replaced to properly deal with lwp threading races to avoid accessing and freeing a potentially stale ucred. * Adjust static procedures in the ktrace code to generally take lwp pointers instead of proc pointers. Summary of changes: sys/emulation/43bsd/43bsd_hostinfo.c | 4 +- sys/emulation/dragonfly12/dfbsd12_stat.c | 2 +- sys/emulation/linux/linux_file.c | 15 +++-- sys/emulation/linux/linux_misc.c | 14 ++--- sys/emulation/linux/linux_socket.c | 3 +- sys/emulation/linux/linux_stats.c | 3 +- sys/emulation/linux/linux_uid16.c | 6 ++- sys/kern/imgact_resident.c | 14 +++-- sys/kern/init_main.c | 1 + sys/kern/kern_acl.c | 12 ++--- sys/kern/kern_checkpoint.c | 17 +++--- sys/kern/kern_descrip.c | 10 ++-- sys/kern/kern_event.c | 2 +- sys/kern/kern_fork.c | 6 +- sys/kern/kern_jail.c | 14 +++-- sys/kern/kern_ktrace.c | 57 ++++++++++---------- sys/kern/kern_prot.c | 73 +++++++++++++-------------- sys/kern/kern_resource.c | 4 +- sys/kern/kern_sysctl.c | 2 +- sys/kern/kern_varsym.c | 59 ++++++++++++++------- sys/kern/lwkt_caps.c | 58 ++++++++++++--------- sys/kern/sys_generic.c | 2 +- sys/kern/sys_mqueue.c | 14 +++-- sys/kern/sysv_msg.c | 30 +++++----- sys/kern/sysv_sem.c | 65 +++++++++++++---------- sys/kern/sysv_shm.c | 29 ++++++---- sys/kern/uipc_syscalls.c | 6 +- sys/kern/vfs_syscalls.c | 83 ++++++++++++++---------------- sys/netproto/ncp/ncp_mod.c | 10 ++-- sys/platform/pc32/i386/sys_machdep.c | 2 +- sys/sys/thread.h | 5 ++ sys/vfs/nfs/nfs_syscalls.c | 2 +- sys/vm/vm_mmap.c | 5 +- sys/vm/vm_swap.c | 6 +-- 34 files changed, 341 insertions(+), 294 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9910d07b2f8670a44edbe17863f961ffbc6ea537 -- DragonFly BSD source repository
文章代碼(AID): #1B9zptmK (DFBSD_commit)