Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42698
b: refs/heads/master
c: 952f3b5
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Dec 7, 2006
1 parent fdd42ce commit 89e7e10
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5bcd234d881d83ac0259c6d42d98f134e31c60a8
refs/heads/master: 952f3b51beb592f3f1de15adcdef802fc086ea91
11 changes: 11 additions & 0 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,17 @@ __alloc_pages(gfp_t gfp_mask, unsigned int order,
if (page)
goto got_pg;

/*
* GFP_THISNODE (meaning __GFP_THISNODE, __GFP_NORETRY and
* __GFP_NOWARN set) should not cause reclaim since the subsystem
* (f.e. slab) using GFP_THISNODE may choose to trigger reclaim
* using a larger set of nodes after it has established that the
* allowed per node queues are empty and that nodes are
* over allocated.
*/
if (NUMA_BUILD && (gfp_mask & GFP_THISNODE) == GFP_THISNODE)
goto nopage;

for (z = zonelist->zones; *z; z++)
wakeup_kswapd(*z, order);

Expand Down

0 comments on commit 89e7e10

Please sign in to comment.