patch-2.3.21 linux/include/linux/sched.h

Next file: linux/include/linux/synclink.h
Previous file: linux/include/linux/pc_keyb.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.20/linux/include/linux/sched.h linux/include/linux/sched.h
@@ -823,8 +823,8 @@
 extern inline void unhash_process(struct task_struct *p)
 {
 	if (task_on_runqueue(p)) BUG();
-	nr_threads--;
 	write_lock_irq(&tasklist_lock);
+	nr_threads--;
 	unhash_pid(p);
 	REMOVE_LINKS(p);
 	write_unlock_irq(&tasklist_lock);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)