From owner-cvs-src@FreeBSD.ORG Sun Aug 22 01:58:04 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 32A7516A4CE; Sun, 22 Aug 2004 01:58:04 +0000 (GMT) Received: from green.homeunix.org (pcp04371970pcs.nrockv01.md.comcast.net [69.140.223.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB37743D4C; Sun, 22 Aug 2004 01:58:03 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.1/8.13.1) with ESMTP id i7M1w1hU001752; Sat, 21 Aug 2004 21:58:01 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.1/8.13.1/Submit) id i7M1w1Fl001751; Sat, 21 Aug 2004 21:58:01 -0400 (EDT) (envelope-from green) Date: Sat, 21 Aug 2004 21:58:00 -0400 From: Brian Fundakowski Feldman To: Alan Cox Message-ID: <20040822015800.GE784@green.homeunix.org> References: <200408211920.i7LJKLlA088634@repoman.freebsd.org> <20040821225939.GA784@green.homeunix.org> <20040821233134.GF9106@cs.rice.edu> <20040821234116.GC784@green.homeunix.org> <20040822001559.GG9106@cs.rice.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040822001559.GG9106@cs.rice.edu> User-Agent: Mutt/1.5.6i cc: Alan Cox cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/vm vm_fault.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: Sun, 22 Aug 2004 01:58:04 -0000 On Sat, Aug 21, 2004 at 07:15:59PM -0500, Alan Cox wrote: > On Sat, Aug 21, 2004 at 07:41:16PM -0400, Brian Fundakowski Feldman wrote: > > On Sat, Aug 21, 2004 at 06:31:34PM -0500, Alan Cox wrote: > > > On Sat, Aug 21, 2004 at 06:59:39PM -0400, Brian Fundakowski Feldman wrote: > > > > On Sat, Aug 21, 2004 at 07:20:21PM +0000, Alan Cox wrote: > > > > > alc 2004-08-21 19:20:21 UTC > > > > > > > > > > FreeBSD src repository > > > > > > > > > > Modified files: > > > > > sys/vm vm_fault.c > > > > > Log: > > > > > Further reduce the use of Giant by vm_fault(): Giant is held only when > > > > > manipulating a vnode, e.g., calling vput(). This reduces contention for > > > > > Giant during many copy-on-write faults, resulting in some additional > > > > > speedup on SMPs. > > > > > > > > > > Note: debug_mpsafevm must be enabled for this optimization to take effect. > > > > > > > > This is very broken. See included first attempt at fixing it without > > > > regard for actually trying to reimplement debug.mpsafenet for vnodes. > > > > > > > > > > Can you please explain what is broken? > > > > #1. Lock order reversal. Giant is acquired after the map read lock. > > No, that is the order it has been in for months. The other functions > that acquire a map lock and Giant do the same. Giant can never be acquired after another lock has been acquired :-( -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\