From: Giridhar Pemmasani Date: Sat, 28 Oct 2006 17:38:34 +0000 (-0700) Subject: [PATCH] __vmalloc with GFP_ATOMIC causes 'sleeping from invalid context' X-Git-Tag: v2.6.19-rc4~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52fd24ca1db3a741f144bbc229beefe044202cac;p=pandora-kernel.git [PATCH] __vmalloc with GFP_ATOMIC causes 'sleeping from invalid context' If __vmalloc is called to allocate memory with GFP_ATOMIC in atomic context, the chain of calls results in __get_vm_area_node allocating memory for vm_struct with GFP_KERNEL, causing the 'sleeping from invalid context' warning. This patch fixes it by passing the gfp flags along so __get_vm_area_node allocates memory for vm_struct with the same flags. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed