All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Peter Zijlstra <peterz@infradead.org>
Cc: "Dave Chinner" <david@fromorbit.com>,
	"Dan Noé" <dpn@isomerica.net>,
	linux-kernel@vger.kernel.org,
	"Christoph Hellwig" <hch@infradead.org>
Subject: Re: Lockdep warning for iprune_mutex at shrink_icache_memory
Date: Thu, 4 Dec 2008 10:09:00 +0100	[thread overview]
Message-ID: <20081204090900.GI32594@elte.hu> (raw)
In-Reply-To: <1228377618.19569.949.camel@twins>


* Peter Zijlstra <peterz@infradead.org> wrote:

> On Thu, 2008-11-27 at 09:05 +0100, Peter Zijlstra wrote:
> > On Thu, 2008-11-27 at 08:34 +1100, Dave Chinner wrote:
> > > Is changing the lock class dynamically possible/allowed?
> > 
> > Currently, no, but I'll see what I can do, it requires a bit of trickery
> > to make that happen..
> > 
> > I'll let you know when I've sorted that out.
> 
> Ok, that wasn't hard at all..
> 
> Dave, Christoph, can you have a play with this and post this patch along
> with a potential user - I think it best if we don't merge this without
> at least one user in tree :-)
> 
> ---
> Subject: lockdep: change a held lock's class
> From: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Date: Thu Dec 04 08:34:56 CET 2008
> 
> Impact: introduce new lockdep API
> 
> Allow to change a held lock's class. Basically the same as the existing
> code to change a subclass therefore reuse all that.
> 
> The XFS code will be able to use this to annotate their inode locking.
> 
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Signed-off-by: Ingo Molnar <mingo@elte.hu>
> ---
>  include/linux/lockdep.h |   12 ++++++++++--
>  kernel/lockdep.c        |   24 +++++++++---------------
>  2 files changed, 19 insertions(+), 17 deletions(-)

i've applied it to tip/core/locking, but it's just a new API without 
really disturbing the current code - but it would be nice to know whether 
it solves the XFS annotation problems.

	Ingo

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

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-25 11:43 Lockdep warning for iprune_mutex at shrink_icache_memory Dan Noé
2008-11-26  7:26 ` Dave Chinner
2008-11-26 15:02   ` Peter Zijlstra
2008-11-26 17:52     ` Dan Noé
2008-11-26 21:34     ` Dave Chinner
2008-11-27  8:05       ` Peter Zijlstra
2008-12-04  8:00         ` Peter Zijlstra
2008-12-04  9:09           ` Ingo Molnar [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=20081204090900.GI32594@elte.hu \
    --to=mingo@elte.hu \
    --cc=david@fromorbit.com \
    --cc=dpn@isomerica.net \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.