Date: Fri, 26 Oct 2001 01:12:54 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha trap.c src/sys/i386/i386 trap.c src/sys/ia64/ia64 trap.c src/sys/kern init_main.c kern_exit.c kern_fork.c subr_trap.c src/sys/sparc64/sparc64 trap.c src/sys/sys proc.h Message-ID: <200110260812.f9Q8CsD14882@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2001/10/26 01:12:54 PDT Modified files: sys/alpha/alpha trap.c sys/i386/i386 trap.c sys/ia64/ia64 trap.c sys/kern init_main.c kern_exit.c kern_fork.c subr_trap.c sys/sparc64/sparc64 trap.c sys/sys proc.h Log: Add a per-thread ucred reference for syscalls and synchronous traps from userland. The per thread ucred reference is immutable and thus needs no locks to be read. However, until all the proc locking associated with writes to p_ucred are completed, it is still not safe to use the per-thread reference. Tested on: x86 (SMP), alpha, sparc64 Revision Changes Path 1.78 +19 -2 src/sys/alpha/alpha/trap.c 1.207 +37 -26 src/sys/i386/i386/trap.c 1.39 +18 -0 src/sys/ia64/ia64/trap.c 1.178 +2 -1 src/sys/kern/init_main.c 1.140 +10 -0 src/sys/kern/kern_exit.c 1.123 +5 -0 src/sys/kern/kern_fork.c 1.201 +12 -4 src/sys/kern/subr_trap.c 1.16 +25 -4 src/sys/sparc64/sparc64/trap.c 1.190 +1 -0 src/sys/sys/proc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110260812.f9Q8CsD14882>