From: Oleg Nesterov Date: Mon, 26 Jun 2006 07:26:05 +0000 (-0700) Subject: [PATCH] coredump: optimize ->mm users traversal X-Git-Tag: v2.6.18-rc1~740 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aceecc041217b35df753d1ed6e25bd17c0c558d8;p=pandora-kernel.git [PATCH] coredump: optimize ->mm users traversal zap_threads() iterates over all threads to find those ones which share current->mm. All threads in the thread group share the same ->mm, so we can skip entire thread group if it has another ->mm. This patch shifts the killing of thread group into the newly added zap_process() function. This looks as unnecessary complication, but it is used in further patches. Signed-off-by: Oleg Nesterov Cc: "Eric W. Biederman" Acked-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed