From owner-cvs-src@FreeBSD.ORG Sat May 24 16:18:23 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 9A3A21065670; Sat, 24 May 2008 16:18:23 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7FD858FC13; Sat, 24 May 2008 16:18:23 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 192E146B23; Sat, 24 May 2008 12:18:23 -0400 (EDT) Date: Sat, 24 May 2008 17:18:23 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: "Bjoern A. Zeeb" In-Reply-To: <200805241520.m4OFKmxd055126@repoman.freebsd.org> Message-ID: <20080524171709.B9809@fledge.watson.org> References: <200805241520.m4OFKmxd055126@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/netinet udp_usrreq.c src/sys/netinet6 ip6_input.c ip6_var.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: Sat, 24 May 2008 16:18:23 -0000 On Sat, 24 May 2008, Bjoern A. Zeeb wrote: > Factor out the v4-only vs. the v6-only inp_flags processing in > ip6_savecontrol in preparation for udp_append() to no longer > need an WLOCK as we will no longer be modifying socket options. Much appreciated, thanks. There are some other similar cases in the stack, such as routing-related socket option handling, where rather than have two code paths of a stack-based argument, the authors went with modifying potentially global state. This is now coming back to bite us as it requires fundamentally local paths to acquire global scope locks exclusively to protect that state, so we should make sure to continue cleaning these things up as we find them. Robert N M Watson Computer Laboratory University of Cambridge