From: Oleg Nesterov Date: Mon, 26 Jun 2006 07:26:09 +0000 (-0700) Subject: [PATCH] coredump: shutdown current process first X-Git-Tag: v2.6.18-rc1~735 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5debfa6da5b06954bc79fe8deed0d1062c58dcec;p=pandora-kernel.git [PATCH] coredump: shutdown current process first This patch optimizes zap_threads() for the case when there are no ->mm users except the current's thread group. In that case we can avoid 'for_each_process()' loop. It also adds a useful invariant: SIGNAL_GROUP_EXIT (if checked under ->siglock) always implies that all threads (except may be current) have pending SIGKILL. Signed-off-by: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed