diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2006-06-26 00:26:05 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 09:58:26 -0700 |
commit | aceecc041217b35df753d1ed6e25bd17c0c558d8 (patch) | |
tree | d78a9961bd8daecc31fc4720868b6f2a9a93aa94 /fs/proc | |
parent | 2ceb8693ef63ae3d154ce1a05d275f2bb20a5e4c (diff) |
[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 <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/proc')
0 files changed, 0 insertions, 0 deletions