From: Oleg Nesterov Date: Wed, 10 Dec 2014 23:55:14 +0000 (-0800) Subject: exit: reparent: introduce find_alive_thread() X-Git-Tag: omap-for-v3.19/fixes-rc1~142^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9dc05bfdb3f7fd7c00f3cbd33816c99d2cb9029;p=pandora-kernel.git exit: reparent: introduce find_alive_thread() Add the new simple helper to factor out the for_each_thread() code in find_child_reaper() and find_new_reaper(). It can also simplify the potential PF_EXITING -> exit_state change, plus perhaps we can change this code to take SIGNAL_GROUP_EXIT into account. Signed-off-by: Oleg Nesterov Cc: Aaron Tomlin Cc: "Eric W. Biederman" Cc: Kay Sievers Cc: Lennart Poettering Cc: Sterling Alexander Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed