From owner-cvs-src@FreeBSD.ORG Sun Aug 22 04:49:37 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 4690916A4CE; Sun, 22 Aug 2004 04:49:37 +0000 (GMT) Received: from cs.rice.edu (cs.rice.edu [128.42.1.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AEFB43D1F; Sun, 22 Aug 2004 04:49:37 +0000 (GMT) (envelope-from alc@cs.rice.edu) Received: from localhost (calypso.cs.rice.edu [128.42.1.127]) by cs.rice.edu (Postfix) with ESMTP id D71754ABDF; Sat, 21 Aug 2004 23:49:36 -0500 (CDT) Received: from cs.rice.edu ([128.42.1.30]) by localhost (calypso.cs.rice.edu [128.42.1.127]) (amavisd-new, port 10024) with LMTP id 09101-01-55; Sat, 21 Aug 2004 23:49:36 -0500 (CDT) Received: by cs.rice.edu (Postfix, from userid 19572) id 817B34AB93; Sat, 21 Aug 2004 23:49:36 -0500 (CDT) Date: Sat, 21 Aug 2004 23:49:36 -0500 From: Alan Cox To: Robert Watson Message-ID: <20040822044936.GJ9106@cs.rice.edu> References: <20040822041018.GA937@green.homeunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-Virus-Scanned: by amavis-20030616-p7 at cs.rice.edu cc: Alan Cox cc: Brian Fundakowski Feldman cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: cvs-src@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 04:49:37 -0000 On Sun, Aug 22, 2004 at 12:18:49AM -0400, Robert Watson wrote: > > On Sun, 22 Aug 2004, Brian Fundakowski Feldman wrote: > > > Also, it was the system_map lock, so it was a mutex, not an sx. > > > > /Goes back to trying to figure out wtf portupgrade -rR kde\* keeps > > causing > > hangs, but only in X, not at the command line, and not seemingly > > dependant on AGP/X driver. > > I believe mutexes are alright also as long as you're careful about > sleeping and lock order. I.e., don't sleep while holding a > non-funnel-like mutex, etc. > We should never page fault on a system map. If that happens to you, it indicates an error. (In-kernel maps on which we do page fault, such as the pipe submap, are treated the same as user maps and utilize an sx lock.) Alan