Oleg Nesterov 7001510d0c [PATCH] copy_process: cleanup bad_fork_cleanup_sighand
The only caller of exit_sighand(tsk) is copy_process's error path.  We can
call __exit_sighand() directly and kill exit_sighand().

This 'tsk' was not yet registered in pid_hash[] or init_task.tasks, it has no
external references, nobody can see it, and

	IF (clone_flags & CLONE_SIGHAND)
		At least 'current' has a reference to ->sighand, this
		means atomic_dec_and_test(sighand->count) can't be true.

	ELSE
		Nobody can see this ->sighand, this means we can free it
		without any locking.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: "Paul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-28 18:36:42 -08:00
..
2006-01-11 18:42:13 -08:00
2006-03-20 14:08:55 -05:00
2006-03-20 14:08:55 -05:00
2006-03-26 08:57:03 -08:00
2006-03-26 08:57:03 -08:00
2006-01-11 18:42:13 -08:00
2006-03-28 09:16:02 -08:00
2006-03-26 08:57:03 -08:00
2006-03-25 08:23:02 -08:00
2006-01-11 18:42:13 -08:00
2006-03-24 07:33:20 -08:00