From: Shaohua Li Date: Mon, 14 Nov 2011 05:34:13 +0000 (+0800) Subject: slub: move discard_slab out of node lock X-Git-Tag: v3.2-rc4~9^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ada19342b2441f290f0043ed7c562682c8c4ede;p=pandora-kernel.git slub: move discard_slab out of node lock Lockdep reports there is potential deadlock for slub node list_lock. discard_slab() is called with the lock hold in unfreeze_partials(), which could trigger a slab allocation, which could hold the lock again. discard_slab() doesn't need hold the lock actually, if the slab is already removed from partial list. Acked-by: Christoph Lameter Reported-and-tested-by: Yong Zhang Reported-and-tested-by: Julie Sullivan Signed-off-by: Shaohua Li Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed