From owner-cvs-src@FreeBSD.ORG Wed Jan 11 18:12:35 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 ED41016A41F; Wed, 11 Jan 2006 18:12:35 +0000 (GMT) (envelope-from emaste@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BECBC43D45; Wed, 11 Jan 2006 18:12:35 +0000 (GMT) (envelope-from emaste@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 k0BICZdH009115; Wed, 11 Jan 2006 18:12:35 GMT (envelope-from emaste@repoman.freebsd.org) Received: (from emaste@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0BICZcT009114; Wed, 11 Jan 2006 18:12:35 GMT (envelope-from emaste) Message-Id: <200601111812.k0BICZcT009114@repoman.freebsd.org> From: Ed Maste Date: Wed, 11 Jan 2006 18:12:35 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Cc: Subject: cvs commit: src/sys/net rtsock.c 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: Wed, 11 Jan 2006 18:12:36 -0000 emaste 2006-01-11 18:12:35 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/net rtsock.c Log: MFC rtsock.c:1.129: Protect interface and address lists using the appropriate mutex. These locks were not aquired because the user buffers were not wired, thus it was possible that that SYSCTL_OUT could sleep, causing a number of different problems such as lock ordering issues and dead locks. -Wire user supplied buffer to ensure SYSCTL_OUT will not sleep. -Pickup ifnet locks to protect the list. -Where applicable pickup address locks. -Pickup radix node head locks. -Remove splnet stubs -Remove various comments about locking here, because they are no longer needed. It is the hope that these changes will make sysctl_rtsock MP safe. Approved by: rwatson (mentor) Revision Changes Path 1.113.2.7 +16 -11 src/sys/net/rtsock.c