mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] oom: kill all threads that share mm with killed task
@ 2007-04-24  4:36 David Rientjes
  2007-04-24  5:49 ` William Lee Irwin III
  2007-04-24  5:49 ` Christoph Lameter
  0 siblings, 2 replies; 4+ messages in thread
From: David Rientjes @ 2007-04-24  4:36 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Andi Kleen, Christoph Lameter, linux-kernel

oom_kill_task() calls __oom_kill_task() to OOM kill a selected task.
When finding other threads that share an mm with that task, we need to
kill those individual threads and not the same one.

Cc: Andi Kleen <ak@suse.de>
Cc: Christoph Lameter <clameter@engr.sgi.com>
Signed-off-by: David Rientjes <rientjes@google.com>
---
 mm/oom_kill.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/oom_kill.c b/mm/oom_kill.c
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -333,7 +333,7 @@ static int oom_kill_task(struct task_struct *p)
 	 */
 	do_each_thread(g, q) {
 		if (q->mm == mm && q->tgid != p->tgid)
-			force_sig(SIGKILL, p);
+			force_sig(SIGKILL, q);
 	} while_each_thread(g, q);
 
 	return 0;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-24  6:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-24  4:36 [patch] oom: kill all threads that share mm with killed task David Rientjes
2007-04-24  5:49 ` William Lee Irwin III
2007-04-24  5:49 ` Christoph Lameter
2007-04-24  6:00   ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®