]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
mm, slab: lock the correct nodelist after reenabling irqs
authorDavid Rientjes <rientjes@google.com>
Wed, 29 Aug 2012 02:57:21 +0000 (19:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 29 Aug 2012 18:32:21 +0000 (11:32 -0700)
commit51cd8e6ff265650e35e46b5bcbe2ee381a7a2877
tree810b33b488093ecac152252cbe22d4d62c7c9763
parentc182ae42cc3611f7b3fa803c0bcab6e5d29bea63
mm, slab: lock the correct nodelist after reenabling irqs

cache_grow() can reenable irqs so the cpu (and node) can change, so ensure
that we take list_lock on the correct nodelist.

This fixes an issue with commit 072bb0aa5e06 ("mm: sl[au]b: add
knowledge of PFMEMALLOC reserve pages") where list_lock for the wrong
node was taken after growing the cache.

Reported-and-tested-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab.c