tasks/fork: Remove unnecessary child->exit_state
authorOleg Nesterov <oleg@redhat.com>
Wed, 13 Nov 2013 14:36:12 +0000 (15:36 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 27 Nov 2013 12:50:50 +0000 (13:50 +0100)
commitbb8cbbfee68518796df4050868e5b0f5ad078f9f
tree6f7813e8577bef51b31b32b362ef4cc7136a45c2
parent39e24d8ffbb6aa90222527dbd5991ec49fbbf323
tasks/fork: Remove unnecessary child->exit_state

A zombie task obviously can't fork(), remove the unnecessary
initialization of child->exit_state. It is zero anyway after
dup_task_struct().

Note: copy_process() is huge and it has a lot of chaotic
initializations, probably it makes sense to move them into the
new helper called by dup_task_struct().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: David Laight <David.Laight@ACULAB.COM>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20131113143612.GA10540@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/fork.c