From: Seth Jennings Date: Mon, 22 Aug 2011 19:30:38 +0000 (-0500) Subject: staging: zcache: fix possible sleep under lock X-Git-Tag: v3.2-rc1~169^2^2~864^2~171 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbe82eb1170c0095e0ce89676235e0b27d7040d1;p=pandora-kernel.git staging: zcache: fix possible sleep under lock zcache_new_pool() calls kmalloc() with GFP_KERNEL which has __GFP_WAIT set. However, zcache_new_pool() gets called on a stack that holds the swap_lock spinlock, leading to a possible sleep-with-lock situation. The lock is obtained in enable_swap_info(). The patch replaces GFP_KERNEL with GFP_ATOMIC. v2: replace with GFP_ATOMIC, not GFP_IOFS Signed-off-by: Seth Jennings Acked-by: Dan Magenheimer Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed