Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292616
b: refs/heads/master
c: 8447d95
h: refs/heads/master
v: v3
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Mar 22, 2012
1 parent 4b5ac79 commit f7cbc39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 647f2bdf4a00dbcaa8964286501d68e7d2e6da93
refs/heads/master: 8447d950e7445cae71ad66d0e33784f8388aaf9d
6 changes: 3 additions & 3 deletions trunk/mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,6 @@ static void oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order,
struct mm_struct *mm;
unsigned int victim_points = 0;

if (printk_ratelimit())
dump_header(p, gfp_mask, order, memcg, nodemask);

/*
* If the task is already exiting, don't alarm the sysadmin or kill
* its children or threads, just set TIF_MEMDIE so it can die quickly
Expand All @@ -457,6 +454,9 @@ static void oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order,
return;
}

if (printk_ratelimit())
dump_header(p, gfp_mask, order, memcg, nodemask);

task_lock(p);
pr_err("%s: Kill process %d (%s) score %d or sacrifice child\n",
message, task_pid_nr(p), p->comm, points);
Expand Down

0 comments on commit f7cbc39

Please sign in to comment.