Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750719AbWIOFds (ORCPT ); Fri, 15 Sep 2006 01:33:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750722AbWIOFds (ORCPT ); Fri, 15 Sep 2006 01:33:48 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:37584 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S1750719AbWIOFdr (ORCPT ); Fri, 15 Sep 2006 01:33:47 -0400 Subject: Re: [PATCH 0/3] Synaptics - fix lockdep warnings From: Arjan van de Ven To: Dmitry Torokhov Cc: Jiri Kosina , lkml , Ingo Molnar In-Reply-To: References: <1158260584.4200.3.camel@laptopd505.fenrus.org> Content-Type: text/plain Organization: Intel International BV Date: Fri, 15 Sep 2006 07:33:24 +0200 Message-Id: <1158298404.4332.18.camel@laptopd505.fenrus.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1489 Lines: 33 On Thu, 2006-09-14 at 15:11 -0400, Dmitry Torokhov wrote: > On 9/14/06, Arjan van de Ven wrote: > > > > > > > > I think it is - as far as I understand the reason for not tracking > > > every lock individually is just that it is too expensive to do by > > > default. > > > > that is not correct. While it certainly plays a role, > > the other reason is that you can find out "class" level locking rules > > (such as inode->i_mutex comes before ) for all inodes at a > > time; eg no need to see every inode do this before you can find the > > deadlock. > > > > OK, I can see that. However you must agree that for certain locks we > do want to track them individually, right? I agree that if locks really represent different objects with different locking semantics they should not share the class. Lockdep provides a mechanism for that; however I'm very afraid that for the input layer, they really are not that, they are not different objects with different semantics; they are the same objects with nesting semantics! In that case the "separate lock class" stuff has only disadvantages. The worst thing is that as I understand it this separate class is *dynamic*. Eg it's not even "one class per driver" ;( - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/