aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2014-12-10 15:55:05 -0800
committerLinus Torvalds <[email protected]>2014-12-10 17:41:17 -0800
commit3750ef979cfa1296630aa9f23e265c1bd721498a (patch)
treeec0da6a3d2c2ee8b989e0826817a4c5ea45b4627 /tools/perf/scripts/python/event_analyzing_sample.py
parent7d24e2df52f596a1ea922e4f84a61f2fb24fbb70 (diff)
exit: reparent: s/while_each_thread/for_each_thread/ in find_new_reaper()
Change find_new_reaper() to use for_each_thread() instead of deprecated while_each_thread(). We do not bother to check "thread != father" in the 1st loop, we can rely on PF_EXITING check. Note: this means the minor behavioural change: for_each_thread() starts from the group leader. But this should be fine, nobody should make any assumption about do_wait(__WNOTHREAD) when it comes to reparented tasks. And this can avoid the pointless reparenting to a short-living thread While zombie leaders are not that common. Signed-off-by: Oleg Nesterov <[email protected]> Cc: Aaron Tomlin <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Kay Sievers <[email protected]> Cc: Lennart Poettering <[email protected]> Cc: Sterling Alexander <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions