lkml.org 
[lkml]   [2014]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [linux-next][PATCH] mm: slub: work around unneeded lockdep warning
On Fri, 24 Jan 2014, Dave Hansen wrote:

> From: Dave Hansen <dave.hansen@linux.intel.com>
>
> The slub code does some setup during early boot in
> early_kmem_cache_node_alloc() with some local data. There is no
> possible way that another CPU can see this data, so the slub code
> doesn't unnecessarily lock it. However, some new lockdep asserts
> check to make sure that add_partial() _always_ has the list_lock
> held.
>
> Just add the locking, even though it is technically unnecessary.
>
> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Pekka Enberg <penberg@kernel.org>
> Cc: Russell King <linux@arm.linux.org.uk>

Acked-by: David Rientjes <rientjes@google.com>


\
 
 \ /
  Last update: 2014-01-26 06:21    [W:0.098 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site