Date: Fri, 11 Mar 2005 16:30:02 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern uipc_socket.c Message-ID: <200503111630.j2BGU2bD013161@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503111630.j2BGU2bD013161>
