]> Pileus Git - ~andy/linux/blobdiff - kernel/exit.c
introduce for_each_thread() to replace the buggy while_each_thread()
[~andy/linux] / kernel / exit.c
index a949819055d51d5d4335544f81016770af6b687e..1e77fc6453174a5945ec786e0b0183b33dfcf507 100644 (file)
@@ -74,6 +74,7 @@ static void __unhash_process(struct task_struct *p, bool group_dead)
                __this_cpu_dec(process_counts);
        }
        list_del_rcu(&p->thread_group);
+       list_del_rcu(&p->thread_node);
 }
 
 /*