[PATCH] de_thread: fix lockless do_each_thread
authorOleg Nesterov <oleg@tv-sign.ru>
Mon, 26 Jun 2006 07:26:04 +0000 (00:26 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:26 +0000 (09:58 -0700)
commit2ceb8693ef63ae3d154ce1a05d275f2bb20a5e4c
tree6e61f8c5513cb905d6326417b0e95f27d3623735
parent42c3e03ef6b298813557cdb997bd6db619cd65a2
[PATCH] de_thread: fix lockless do_each_thread

We should keep the value of old_leader->tasks.next in de_thread, otherwise
we can't do for_each_process/do_each_thread without tasklist_lock held.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/exec.c