From: Kirill Korotaev Date: Fri, 23 Jun 2006 09:03:50 +0000 (-0700) Subject: [PATCH] printk() should not be called under zone->lock X-Git-Tag: v2.6.18-rc1~1081^2~159 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f9de51a4a98ba32f839903b7d009788bc2c295d;p=pandora-kernel.git [PATCH] printk() should not be called under zone->lock This patch fixes printk() under zone->lock in show_free_areas(). It can be unsafe to call printk() under this lock, since caller can try to allocate/free some memory and selfdeadlock on this lock. I found allocations/freeing mem both in netconsole and serial console. This issue was faced in reallity when meminfo was periodically printed for debug purposes and netconsole was used. Signed-off-by: Kirill Korotaev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed