From: Oleg Nesterov Date: Wed, 17 Oct 2007 06:27:23 +0000 (-0700) Subject: exec: consolidate 2 fast-paths X-Git-Tag: v2.6.24-rc1~673 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=356d6d5058c8082b9e811838ab2fa27825c947e4;p=linux-2.6-omap-h63xx.git exec: consolidate 2 fast-paths Now that we don't pre-allocate the new ->sighand, we can kill the first fast path, it doesn't make sense any longer. At best, it can save one "list_empty()" check but leads to the code duplication. Signed-off-by: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/exec.c b/fs/exec.c index c6e91c3dc2a..ab5a4a3ece4 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -752,15 +752,6 @@ static int de_thread(struct task_struct *tsk) struct task_struct *leader = NULL; int count; - /* - * If we don't share sighandlers, then we aren't sharing anything - * and we can just re-use it all. - */ - if (atomic_read(&oldsighand->count) <= 1) { - exit_itimers(sig); - return 0; - } - if (thread_group_empty(tsk)) goto no_thread_group;