public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: benh@kernel.crashing.org, Ingo Molnar <mingo@elte.hu>,
	Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: lockdep, false positive ?
Date: Wed, 09 Apr 2008 18:16:10 +0200	[thread overview]
Message-ID: <1207757770.24562.14.camel@twins> (raw)
In-Reply-To: <20080409120803.ZZRA012@mailhub.coreip.homeip.net>

On Wed, 2008-04-09 at 12:11 -0400, Dmitry Torokhov wrote:
> Hi Peter,
> 
> On Wed, Apr 09, 2008 at 11:44:41AM +0200, Peter Zijlstra wrote:
> > 
> > Yes, if both locks are of the same class it will report this. Lockdep
> > does lock chain validation on classes, never on individual locks.
> > 
> > A class usually consists of all locks that share the lock init site; but
> > there are ways to explicity set another class.
> > 
> > In case of these recursions we have helpers like spin_lock_nested(&lock,
> > subclass) that allow you to annotate these. These sub-classes must then
> > always be taken in the same order; subclass < 8.
> > 
> > In this case its probably easier to explicity set a class, as the
> > nesting is not exposed to the input layer, so it doesn't know about it.
> > 
> 
> Is there a way in lockdep to mark all instances of a given lock as distinct?
> I'd rather do that in input core once and be done with it.

Nope. Do you have a lot of nesting in input?

> Also another question I've been meaning to ask - we have lockdep annotations
> in serio code and they work fine first time around but if you reload
> psmouse module lockdep will barf if you have SYnaptics touchpad with
> pass-through port. What gives?

Could you show me one such dump? - And yes, module reloading is a tad
tricky, but it should work for a while.


      reply	other threads:[~2008-04-09 16:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-09  4:16 lockdep, false positive ? Benjamin Herrenschmidt
2008-04-09  9:44 ` Peter Zijlstra
2008-04-09 16:11   ` Dmitry Torokhov
2008-04-09 16:16     ` Peter Zijlstra [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1207757770.24562.14.camel@twins \
    --to=peterz@infradead.org \
    --cc=benh@kernel.crashing.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox