Re: [PATCH 1/4] de_thread: use change_pid() rather than detach_pid/attach_pid

2013-06-09 Thread Eric W. Biederman
Oleg Nesterov writes: > de_thread() can use change_pid() instead of detach + attach. > This looks better and this ensures that, say, next_thread() > can never see a task with ->pid == NULL. I want to say that there I though there was a good reason something to do with the exit logic. However I

[PATCH 1/4] de_thread: use change_pid() rather than detach_pid/attach_pid

2013-06-09 Thread Oleg Nesterov
de_thread() can use change_pid() instead of detach + attach. This looks better and this ensures that, say, next_thread() can never see a task with ->pid == NULL. Signed-off-by: Oleg Nesterov --- fs/exec.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/fs/exec.c b/fs/e