25 lines
780 B
Diff
25 lines
780 B
Diff
|
Subject: mm-page-alloc-fix.patch
|
||
|
From: Thomas Gleixner <tglx@linutronix.de>
|
||
|
Date: Thu, 21 Jul 2011 16:47:49 +0200
|
||
|
|
||
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
||
|
---
|
||
|
mm/page_alloc.c | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
Index: linux-3.2/mm/page_alloc.c
|
||
|
===================================================================
|
||
|
--- linux-3.2.orig/mm/page_alloc.c
|
||
|
+++ linux-3.2/mm/page_alloc.c
|
||
|
@@ -1960,8 +1960,8 @@ __alloc_pages_direct_compact(gfp_t gfp_m
|
||
|
if (*did_some_progress != COMPACT_SKIPPED) {
|
||
|
|
||
|
/* Page migration frees to the PCP lists but we want merging */
|
||
|
- drain_pages(get_cpu());
|
||
|
- put_cpu();
|
||
|
+ drain_pages(get_cpu_light());
|
||
|
+ put_cpu_light();
|
||
|
|
||
|
page = get_page_from_freelist(gfp_mask, nodemask,
|
||
|
order, zonelist, high_zoneidx,
|