David Rientjes 255d0884f5 mm/slub.c: list_lock may not be held in some circumstances
Commit c65c1877bd68 ("slub: use lockdep_assert_held") incorrectly
required that add_full() and remove_full() hold n->list_lock.  The lock
is only taken when kmem_cache_debug(s), since that's the only time it
actually does anything.

Require that the lock only be taken under such a condition.

Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-02-10 16:01:41 -08:00
..
2012-01-03 22:54:56 -05:00
2011-07-26 16:49:47 -07:00
2014-01-30 16:56:55 -08:00
2014-01-30 16:56:55 -08:00
2014-01-23 16:36:52 -08:00
2014-01-27 21:02:39 -08:00
2014-01-23 16:36:53 -08:00
2013-10-16 21:35:53 -07:00
2010-05-21 18:31:21 -04:00
2012-06-20 14:39:36 -07:00
2014-01-23 16:36:53 -08:00
2014-01-30 16:56:55 -08:00