From owner-cvs-all@FreeBSD.ORG Sat Jun 12 16:09:16 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6D5016A4CE; Sat, 12 Jun 2004 16:09:16 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B075F43D2D; Sat, 12 Jun 2004 16:09:16 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5CG8fBY023765; Sat, 12 Jun 2004 16:08:41 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5CG8fef023764; Sat, 12 Jun 2004 16:08:41 GMT (envelope-from rwatson) Message-Id: <200406121608.i5CG8fef023764@repoman.freebsd.org> From: Robert Watson Date: Sat, 12 Jun 2004 16:08:41 +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/sys socketvar.h src/sys/kern uipc_socket.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2004 16:09:16 -0000 rwatson 2004-06-12 16:08:41 UTC FreeBSD src repository Modified files: sys/sys socketvar.h sys/kern uipc_socket.c Log: Introduce a mutex into struct sockbuf, sb_mtx, which will be used to protect fields in the socket buffer. Add accessor macros to use the mutex (SOCKBUF_*()). Initialize the mutex in soalloc(), and destroy it in sodealloc(). Add addition, add SOCK_*() access macros which will protect most remaining fields in the socket; for the time being, use the receive socket buffer mutex to implement socket level locking to reduce memory overhead. Submitted by: sam Sponosored by: FreeBSD Foundation Obtained from: BSD/OS Revision Changes Path 1.176 +4 -0 src/sys/kern/uipc_socket.c 1.117 +27 -0 src/sys/sys/socketvar.h