From: Christoph Lameter Subject: vcompound: Fallbacks for order 2 stack allocations Signed-off-by: Christoph Lameter --- include/asm-ia64/thread_info.h | 2 +- include/asm-x86/thread_info_32.h | 4 ++-- include/asm-x86/thread_info_64.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) Index: linux-2.6/include/asm-ia64/thread_info.h =================================================================== --- linux-2.6.orig/include/asm-ia64/thread_info.h 2008-02-16 19:57:47.000000000 -0800 +++ linux-2.6/include/asm-ia64/thread_info.h 2008-02-16 19:58:57.000000000 -0800 @@ -68,7 +68,7 @@ struct thread_info { #define end_of_stack(p) (unsigned long *)((void *)(p) + IA64_RBS_OFFSET) #define __HAVE_ARCH_TASK_STRUCT_ALLOCATOR -#define alloc_task_struct() ((struct task_struct *)__get_free_pages(GFP_KERNEL | __GFP_COMP, KERNEL_STACK_SIZE_ORDER)) +#define alloc_task_struct() ((struct task_struct *)__get_free_pages(GFP_VFALLBACK | __GFP_COMP, KERNEL_STACK_SIZE_ORDER)) #define free_task_struct(tsk) free_pages((unsigned long) (tsk), KERNEL_STACK_SIZE_ORDER) #define tsk_set_notify_resume(tsk) \ Index: linux-2.6/include/asm-x86/thread_info_32.h =================================================================== --- linux-2.6.orig/include/asm-x86/thread_info_32.h 2008-02-16 19:55:14.000000000 -0800 +++ linux-2.6/include/asm-x86/thread_info_32.h 2008-02-16 19:57:39.000000000 -0800 @@ -96,10 +96,10 @@ static inline struct thread_info *curren /* thread information allocation */ #ifdef CONFIG_DEBUG_STACK_USAGE #define alloc_thread_info(tsk) ((struct thread_info *) \ - __get_free_pages(GFP_KERNEL| __GFP_ZERO, get_order(THREAD_SIZE))) + __get_free_pages(GFP_VFALLBACK| __GFP_ZERO, get_order(THREAD_SIZE))) #else #define alloc_thread_info(tsk) ((struct thread_info *) \ - __get_free_pages(GFP_KERNEL, get_order(THREAD_SIZE))) + __get_free_pages(GFP_VFALLBACK, get_order(THREAD_SIZE))) #endif #define free_thread_info(info) free_pages((unsigned long)(info), get_order(THREAD_SIZE)) Index: linux-2.6/include/asm-x86/thread_info_64.h =================================================================== --- linux-2.6.orig/include/asm-x86/thread_info_64.h 2008-02-16 19:54:19.000000000 -0800 +++ linux-2.6/include/asm-x86/thread_info_64.h 2008-02-16 19:54:57.000000000 -0800 @@ -77,9 +77,9 @@ static inline struct thread_info *stack_ /* thread information allocation */ #ifdef CONFIG_DEBUG_STACK_USAGE -#define THREAD_FLAGS (GFP_KERNEL | __GFP_ZERO) +#define THREAD_FLAGS (GFP_VFALLBACK | __GFP_ZERO) #else -#define THREAD_FLAGS GFP_KERNEL +#define THREAD_FLAGS GFP_VFALLBACK #endif #define alloc_thread_info(tsk) \