From owner-cvs-src@FreeBSD.ORG Mon Feb 4 12:25:14 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7AB1F16A421; Mon, 4 Feb 2008 12:25:14 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6722413C45A; Mon, 4 Feb 2008 12:25:14 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m14CPEku066667; Mon, 4 Feb 2008 12:25:14 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m14CPEq4066666; Mon, 4 Feb 2008 12:25:14 GMT (envelope-from rwatson) Message-Id: <200802041225.m14CPEq4066666@repoman.freebsd.org> From: Robert Watson Date: Mon, 4 Feb 2008 12:25:13 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern uipc_sockbuf.c uipc_socket.c src/sys/sys socketvar.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 04 Feb 2008 12:25:14 -0000 rwatson 2008-02-04 12:25:13 UTC FreeBSD src repository Modified files: sys/kern uipc_sockbuf.c uipc_socket.c sys/sys socketvar.h Log: Further clean up sorflush: - Expose sbrelease_internal(), a variant of sbrelease() with no expectations about the validity of locks in the socket buffer. - Use sbrelease_internel() in sorflush(), and as a result avoid intializing and destroying a socket buffer lock for the temporary stack copy of the actual buffer, asb. - Add a comment indicating why we do what we do, and remove an XXX since things have gotten less ugly in sorflush() lately. This makes socket close cleaner, and possibly also marginally faster. MFC after: 3 weeks Revision Changes Path 1.176 +1 -2 src/sys/kern/uipc_sockbuf.c 1.305 +12 -12 src/sys/kern/uipc_socket.c 1.162 +1 -0 src/sys/sys/socketvar.h