Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14040
b: refs/heads/master
c: 885036d
h: refs/heads/master
v: v3
  • Loading branch information
Kirill Korotaev authored and Linus Torvalds committed Nov 14, 2005
1 parent 46edf27 commit 3f35824
Show file tree
Hide file tree
Showing 2 changed files with 6 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: d4d28dd4b12649d02a89d19e6bd12ab92a6fcd4e
refs/heads/master: 885036d32f5d3c427c3e2b385b5a5503805e3e52
5 changes: 5 additions & 0 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ __alloc_pages(gfp_t gfp_mask, unsigned int order,
if (((p->flags & PF_MEMALLOC) || unlikely(test_thread_flag(TIF_MEMDIE)))
&& !in_interrupt()) {
if (!(gfp_mask & __GFP_NOMEMALLOC)) {
nofail_alloc:
/* go through the zonelist yet again, ignoring mins */
for (i = 0; (z = zones[i]) != NULL; i++) {
if (!cpuset_zone_allowed(z, gfp_mask))
Expand All @@ -903,6 +904,10 @@ __alloc_pages(gfp_t gfp_mask, unsigned int order,
if (page)
goto got_pg;
}
if (gfp_mask & __GFP_NOFAIL) {
blk_congestion_wait(WRITE, HZ/50);
goto nofail_alloc;
}
}
goto nopage;
}
Expand Down

0 comments on commit 3f35824

Please sign in to comment.