From owner-cvs-src@FreeBSD.ORG Fri Mar 11 16:30:02 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DABAA16A4CE; Fri, 11 Mar 2005 16:30:02 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B306043D2D; Fri, 11 Mar 2005 16:30:02 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j2BGU2TE013162; Fri, 11 Mar 2005 16:30:02 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j2BGU2bD013161; Fri, 11 Mar 2005 16:30:02 GMT (envelope-from rwatson) Message-Id: <200503111630.j2BGU2bD013161@repoman.freebsd.org> From: Robert Watson Date: Fri, 11 Mar 2005 16:30:02 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern uipc_socket.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2005 16:30:03 -0000 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