Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320781
b: refs/heads/master
c: 4f774b9
h: refs/heads/master
i:
  320779: 1c8e1d8
v: v3
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Aug 1, 2012
1 parent d79186e commit 9fc49e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75754681fe79b84dde1048470a44eeb64192fad6
refs/heads/master: 4f774b912dd1d5752cd33b696509531b0321c3e0
11 changes: 5 additions & 6 deletions trunk/mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,11 +745,11 @@ void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask,
read_unlock(&tasklist_lock);

/*
* Give "p" a good chance of killing itself before we
* retry to allocate memory unless "p" is current
* Give the killed threads a good chance of exiting before trying to
* allocate memory again.
*/
if (killed && !test_thread_flag(TIF_MEMDIE))
schedule_timeout_uninterruptible(1);
if (killed)
schedule_timeout_killable(1);
}

/*
Expand All @@ -764,6 +764,5 @@ void pagefault_out_of_memory(void)
out_of_memory(NULL, 0, 0, NULL, false);
clear_system_oom();
}
if (!test_thread_flag(TIF_MEMDIE))
schedule_timeout_uninterruptible(1);
schedule_timeout_killable(1);
}

0 comments on commit 9fc49e2

Please sign in to comment.