From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761523AbYD2Q3S (ORCPT ); Tue, 29 Apr 2008 12:29:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758147AbYD2Q3F (ORCPT ); Tue, 29 Apr 2008 12:29:05 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:64736 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757621AbYD2Q3C (ORCPT ); Tue, 29 Apr 2008 12:29:02 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dL1kxe4ofLRndWprTf+GXqIRfGhoa0IQxyiHNC7lh2Lt1hnNkXXfrUci8Fn0P6kVhIIEbqZPFMLIaDQPaOBHkjp9TXfsIv3vBcbvIltuKHK1A40pVhPMY6l5eEQF7LmFE3YkbICYo1q0PXYhMK5DZgFkw4ogdxHhR0e4vJmwSvA= Message-ID: Date: Tue, 29 Apr 2008 18:29:01 +0200 From: "Bart Van Assche" To: "Peter Zijlstra" Subject: Re: [PATCH 1/8] lockdep: fix recursive read lock validation Cc: ego@in.ibm.com, linux-kernel@vger.kernel.org, "Zdenek Kabelac" , "Oleg Nesterov" , "Heiko Carstens" , "Rafael J. Wysocki" , "Andrew Morton" , "Ingo Molnar" , "Srivatsa Vaddagiri" In-Reply-To: <1209485739.13978.96.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080429125659.GA23562@in.ibm.com> <20080429125750.GB23562@in.ibm.com> <1209481050.13978.72.camel@twins> <1209482101.13978.91.camel@twins> <1209485739.13978.96.camel@twins> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 29, 2008 at 6:15 PM, Peter Zijlstra wrote: > > > Or: whether or not to allow a sequence like "rlock(a); rlock(b); > > runlock(b); runlock(a); rlock(b); rlock(a);" is something we can > > choose. We do not have to forbid this sequence -- we can choose > > whether or not we allow this sequence. > > I'm utterly confused now; I never argued that it would get deadlocks; > and I said I choose to not allow it from a lockdep pov. What else do you > want? So we both agree that the statement in the original e-mail (by Gautham R Shenoy) is wrong ? The original e-mail stated that obtaining reader locks in an inconsistent order is wrong. Bart.