Re: INFO: possible recursive locking detected: get_partial_node()on 3.2-rc1

From: Pekka Enberg
Date: Tue Nov 15 2011 - 13:49:56 EST


On Tue, 15 Nov 2011, Yong Zhang wrote:
Subject: 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.

Reported-and-tested-by: Yong Zhang <yong.zhang0@xxxxxxxxx>
Reported-and-tested-by: Julie Sullivan <kernelmail.jms@xxxxxxxxx>
Signed-off-by: Shaohua Li <shaohua.li@xxxxxxxxx>

Tested-by: Yong Zhang <yong.zhang0@xxxxxxxxx>

Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/