diff options
author | 2015-11-06 16:32:34 -0800 | |
---|---|---|
committer | 2015-11-06 17:50:42 -0800 | |
commit | d61ba58953fcf708c850bfd90b2858f2ddfbc34c (patch) | |
tree | 2f40955b30bd9147934ef5b1eb8bd0498cfb41c8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | coredump: ensure all coredumping tasks have SIGNAL_GROUP_COREDUMP (diff) | |
download | linux-dev-d61ba58953fcf708c850bfd90b2858f2ddfbc34c.tar.xz linux-dev-d61ba58953fcf708c850bfd90b2858f2ddfbc34c.zip |
coredump: change zap_threads() and zap_process() to use for_each_thread()
Change zap_threads() paths to use for_each_thread() rather than
while_each_thread().
While at it, change zap_threads() to avoid the nested if's to make the
code more readable and lessen the indentation.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Kyle Walker <kwalker@redhat.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Stanislav Kozina <skozina@redhat.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions