From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 18 16:46:13 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5503C106567B for ; Mon, 18 Aug 2008 16:46:13 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from gw.sandvine.com (gw.sandvine.com [199.243.201.138]) by mx1.freebsd.org (Postfix) with ESMTP id F3F698FC1A for ; Mon, 18 Aug 2008 16:46:12 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from labgw2.phaedrus.sandvine.com ([192.168.3.11]) by gw.sandvine.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 18 Aug 2008 12:24:12 -0400 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 12627) id CC25211703; Mon, 18 Aug 2008 12:24:11 -0400 (EDT) Date: Mon, 18 Aug 2008 12:24:11 -0400 From: Ed Maste To: freebsd-hackers@freebsd.org Message-ID: <20080818162411.GA77460@sandvine.com> References: <200808181754.18812.max@love2party.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-OriginalArrivalTime: 18 Aug 2008 16:24:12.0111 (UTC) FILETIME=[D9464DF0:01C9014E] Subject: Re: Acquiring a mtx after an sx lock X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2008 16:46:13 -0000 On Mon, Aug 18, 2008 at 12:02:56PM -0400, Ryan Stone wrote: > On Mon, Aug 18, 2008 at 11:54 AM, Max Laier wrote: > > > On Monday 18 August 2008 17:14:01 Ryan Stone wrote: > > > Are there any problems acquiring a sleep mutex after acquiring an sx > > lock? > > > man 9 locking says that you can't, but doesn't provide any reasons. > > [...] > > > > Where does it say so? The interaction table clearly shows: [...] Ahh, it seems ups' commit of rmlocks changed the "You have: sx_lock, You want: Slp_mtx" case from no to ok (in r173444). -Ed