public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
To: Pekka J Enberg <penberg@cs.helsinki.fi>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"rjw@sisk.pl" <rjw@sisk.pl>, "mingo@elte.hu" <mingo@elte.hu>,
	"cl@linux-foundation.org" <cl@linux-foundation.org>,
	"npiggin@suse.de" <npiggin@suse.de>,
	"a.p.zijlstra@chello.nl" <a.p.zijlstra@chello.nl>
Subject: Re: possible recursive locking detected at kmem_cache_free
Date: Fri, 26 Jun 2009 09:58:22 -0700	[thread overview]
Message-ID: <1246035502.4534.21747.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.64.0906261036080.21067@melkki.cs.Helsinki.FI>

On Fri, 2009-06-26 at 00:37 -0700, Pekka J Enberg wrote:
> Hi Venki,
> 
> On Thu, 25 Jun 2009, Pallipadi, Venkatesh wrote:
> > > > Not sure if this has been reported elsewhere. I started seeing this with git
> > > > kernel from this morning on a system with RedHat EL5 base installation with
> > > > ext3 root file system. Attached is the config I am using.
> > > > 
> > > > Let me know if you need any more details. This seems to be at every boot. I
> > > > am trying the bisect right now.
> > > > 
> > > 
> > > Thanks.  Let's cc Pekka.
> > > 
> > 
> > git bisect result.
> 
> Thanks! I think I just broke lockdep annotations for slab. Does this patch 
> fix things?
> 

Yes. This patch helps.

Thanks,
Venki

> 			Pekka
> 
> diff --git a/mm/slab.c b/mm/slab.c
> index e74a16e..37ee532 100644
> --- a/mm/slab.c
> +++ b/mm/slab.c
> @@ -1544,9 +1544,6 @@ void __init kmem_cache_init(void)
>  	}
>  
>  	g_cpucache_up = EARLY;
> -
> -	/* Annotate slab for lockdep -- annotate the malloc caches */
> -	init_lock_keys();
>  }
>  
>  void __init kmem_cache_init_late(void)
> @@ -1563,6 +1560,9 @@ void __init kmem_cache_init_late(void)
>  	/* Done! */
>  	g_cpucache_up = FULL;
>  
> +	/* Annotate slab for lockdep -- annotate the malloc caches */
> +	init_lock_keys();
> +
>  	/*
>  	 * Register a cpu startup notifier callback that initializes
>  	 * cpu_cache_get for all new cpus


  reply	other threads:[~2009-06-26 17:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-25 18:59 possible recursive locking detected at kmem_cache_free Pallipadi, Venkatesh
2009-06-25 19:37 ` Andrew Morton
2009-06-25 21:55   ` Pallipadi, Venkatesh
2009-06-26  7:37     ` Pekka J Enberg
2009-06-26 16:58       ` Pallipadi, Venkatesh [this message]
2009-06-26 17:42         ` Pekka Enberg

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=1246035502.4534.21747.camel@localhost.localdomain \
    --to=venkatesh.pallipadi@intel.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=akpm@linux-foundation.org \
    --cc=cl@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=npiggin@suse.de \
    --cc=penberg@cs.helsinki.fi \
    --cc=rjw@sisk.pl \
    /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