cvs commit: src/sys/netinet in_pcb.c in_pcb.h ip_divert.c
tcp_syncache.c tcp_usrreq.c udp_usrreq.c src/sys/netinet6
in6_pcb.c in6_pcb.h in6_src.c udp6_output.c udp6_usrreq.c
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun Mar 28 00:10:04 PST 2004
On Sat, Mar 27, 2004 at 09:52:57PM -0500, Robert Watson wrote:
+> The credential is only used during the functions, and the reference is
+> owned by the calling thread for the duration of the calls. This change
+> basically moves the td->td_ucred dereference to the caller, rather than
+> doing them in the function. It should be no less safe than the existing
+> code, and since td_ucred is a thread-local reference, it should be safe
+> assuming curthread==td in the caller.
The only place I've found, where curthread != td, is NFS code, where
thread0 is used instead of curthread, but it should be also safe.
--
Pawel Jakub Dawidek http://www.FreeBSD.org
pjd at FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040328/49a596a4/attachment.bin
More information about the cvs-src
mailing list