From owner-cvs-src@FreeBSD.ORG Tue Jun 15 04:14:19 2004 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 95F7F16A4CE; Tue, 15 Jun 2004 04:14:19 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F4A243D48; Tue, 15 Jun 2004 04:14:19 +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 i5F4DxSl022531; Tue, 15 Jun 2004 04:13:59 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5F4Dxut022530; Tue, 15 Jun 2004 04:13:59 GMT (envelope-from rwatson) Message-Id: <200406150413.i5F4Dxut022530@repoman.freebsd.org> From: Robert Watson Date: Tue, 15 Jun 2004 04:13:59 +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/net raw_cb.c raw_cb.h raw_usrreq.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: Tue, 15 Jun 2004 04:14:19 -0000 rwatson 2004-06-15 04:13:59 UTC FreeBSD src repository Modified files: sys/net raw_cb.c raw_cb.h raw_usrreq.c Log: Lock down rawcb_list, a global list of control blocks for raw sockets, using rawcb_mtx. Hold this mutex while modifying or iterating over the control list; this means that the mutex is held over calls into socket delivery code, which no longer causes a lock order reversal as the routing socket code uses a netisr to avoid recursing socket -> routing -> socket. Note: Locking of IPsec consumers of rawcb_list is not included in this commit. Revision Changes Path 1.29 +3 -0 src/sys/net/raw_cb.c 1.18 +1 -0 src/sys/net/raw_cb.h 1.34 +6 -0 src/sys/net/raw_usrreq.c