Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42648
b: refs/heads/master
c: f2a2a71
h: refs/heads/master
v: v3
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Dec 7, 2006
1 parent a3cf061 commit e86ce11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: f3af38d30c18538d069a95e624a3db7c3d486a1e
refs/heads/master: f2a2a7108aa0039ba7a5fe7a0d2ecef2219a7584
5 changes: 3 additions & 2 deletions trunk/mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,12 @@ static int oom_kill_task(struct task_struct *p)

/*
* kill all processes that share the ->mm (i.e. all threads),
* but are in a different thread group.
* but are in a different thread group. Don't let them have access
* to memory reserves though, otherwise we might deplete all memory.
*/
do_each_thread(g, q) {
if (q->mm == mm && q->tgid != p->tgid)
__oom_kill_task(q, 1);
force_sig(SIGKILL, p);
} while_each_thread(g, q);

return 0;
Expand Down

0 comments on commit e86ce11

Please sign in to comment.