diff options
author | David Rientjes | 2014-02-10 23:25:39 +0100 |
---|---|---|
committer | Linus Torvalds | 2014-02-11 01:01:41 +0100 |
commit | 255d0884f5635122adb23866b242b4ca112f4bc8 (patch) | |
tree | 8ade02c6988352329f52b961d776623f363cab7c /arch/x86 | |
parent | drivers/md/bcache/extents.c: use %zi to format size_t (diff) | |
download | kernel-qcow2-linux-255d0884f5635122adb23866b242b4ca112f4bc8.tar.gz kernel-qcow2-linux-255d0884f5635122adb23866b242b4ca112f4bc8.tar.xz kernel-qcow2-linux-255d0884f5635122adb23866b242b4ca112f4bc8.zip |
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>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions