From ab126ea63866d331437cb87c3e0026b587e7a1a6 Mon Sep 17 00:00:00 2001 From: Anton Vorontsov Date: Thu, 31 May 2012 16:26:25 -0700 Subject: [PATCH] --- yaml --- r: 309751 b: refs/heads/master c: 9bd0a077122a6b15069aab7a59c8f50f736fa1dd h: refs/heads/master i: 309749: ba9a3f1d0b18e884aae921b52d1bda1ccab91caa 309747: f4da702a0194e92b351c502098d4b8eda674ace9 309743: 70e36d3c9fc89ff49c8602408809be2527d7b3cb v: v3 --- [refs] | 2 +- trunk/arch/um/kernel/reboot.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 819017636f89..05418443af7f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: af1be5a578a1ccc9961c55290f8c509a00a69036 +refs/heads/master: 9bd0a077122a6b15069aab7a59c8f50f736fa1dd diff --git a/trunk/arch/um/kernel/reboot.c b/trunk/arch/um/kernel/reboot.c index 4d93dff6b371..66d754c46e7b 100644 --- a/trunk/arch/um/kernel/reboot.c +++ b/trunk/arch/um/kernel/reboot.c @@ -4,6 +4,7 @@ */ #include "linux/sched.h" +#include "linux/spinlock.h" #include "linux/slab.h" #include "kern_util.h" #include "os.h" @@ -22,6 +23,7 @@ static void kill_off_processes(void) struct task_struct *p; int pid; + read_lock(&tasklist_lock); for_each_process(p) { if (p->mm == NULL) continue; @@ -29,6 +31,7 @@ static void kill_off_processes(void) pid = p->mm->context.id.u.pid; os_kill_ptraced_process(pid, 1); } + read_unlock(&tasklist_lock); } }