aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2010-08-09 17:18:44 -0700
committerLinus Torvalds <[email protected]>2010-08-09 20:44:55 -0700
commitb52279406e77be711c068f9a8e970ea6471e089c (patch)
tree5f44a8af51ccc30847b1d969e0bd36205902d3fb /tools/perf/scripts/python/bin
parent455c0e5fb03b67fa62bd12e3abe3fa484b9960c5 (diff)
oom: PF_EXITING check should take mm into account
select_bad_process() checks PF_EXITING to detect the task which is going to release its memory, but the logic is very wrong. - a single process P with the dead group leader disables select_bad_process() completely, it will always return ERR_PTR() while P can live forever - if the PF_EXITING task has already released its ->mm it doesn't make sense to expect it is goiing to free more memory (except task_struct/etc) Change the code to ignore the PF_EXITING tasks without ->mm. Signed-off-by: Oleg Nesterov <[email protected]> Signed-off-by: David Rientjes <[email protected]> Cc: Balbir Singh <[email protected]> Acked-by: KOSAKI Motohiro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions