[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <84144f020911200238w3d3ecb38k92ca595beee31de5@mail.gmail.com>
Date: Fri, 20 Nov 2009 12:38:02 +0200
From: Pekka Enberg <penberg@...helsinki.fi>
To: Peter Zijlstra <peterz@...radead.org>
Cc: paulmck@...ux.vnet.ibm.com, linux-mm@...ck.org,
cl@...ux-foundation.org, mpm@...enic.com,
LKML <linux-kernel@...r.kernel.org>,
Nick Piggin <npiggin@...e.de>
Subject: Re: lockdep complaints in slab allocator
On Fri, Nov 20, 2009 at 11:25 AM, Peter Zijlstra <peterz@...radead.org> wrote:
> Did anything change recently? git-log mm/slab.c doesn't show anything
> obvious, although ec5a36f94e7ca4b1f28ae4dd135cd415a704e772 has the exact
> same lock recursion msg ;-)
No, SLAB hasn't changed for a while.
On Fri, Nov 20, 2009 at 11:25 AM, Peter Zijlstra <peterz@...radead.org> wrote:
> So basically its this stupid recursion issue where you allocate the slab
> meta structure using the slab allocator, and now have to free while
> freeing, right?
Yes.
On Fri, Nov 20, 2009 at 11:25 AM, Peter Zijlstra <peterz@...radead.org> wrote:
> The code in kmem_cache_create() suggests its not even fixed size, so
> there is no single cache backing all this OFF_SLAB muck :-(
Oh, crap, I missed that. It's variable-length because we allocate the
freelists (bufctls in slab-speak) in the slab managment structure. So
this is a genuine bug.
On Fri, Nov 20, 2009 at 11:25 AM, Peter Zijlstra <peterz@...radead.org> wrote:
> It does appear to be limited to the kmalloc slabs..
>
> There's a few possible solutions -- in order of preference:
>
> 1) do the great slab cleanup now and remove slab.c, this will avoid any
> further waste of manhours and braincells trying to make slab limp along.
:-) I don't think that's an option for 2.6.33.
On Fri, Nov 20, 2009 at 11:25 AM, Peter Zijlstra <peterz@...radead.org> wrote:
> 2) propagate the nesting information and user spin_lock_nested(), given
> that slab is already a rat's nest, this won't make it any less obvious.
spin_lock_nested() doesn't really help us here because there's a
_real_ possibility of a recursive spin lock here, right?
Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists