cvs commit: src/sys/kern uipc_socket.c
Robert Watson
rwatson at FreeBSD.org
Fri Mar 11 08:30:03 PST 2005
rwatson 2005-03-11 16:30:02 UTC
FreeBSD src repository
Modified files:
sys/kern uipc_socket.c
Log:
When setting up a socket in socreate(), there's no need to lock the
socket lock around knlist_init(), so don't.
Hard code the setting of the socket reference count to 1 rather than
using soref() to avoid asserting the socket lock, since we've not yet
exposed the socket to other threads.
This removes two mutex operations from each socket allocation.
Revision Changes Path
1.235 +1 -3 src/sys/kern/uipc_socket.c
More information about the cvs-src
mailing list