diff options
| author | Anton Vorontsov <[email protected]> | 2012-02-06 20:29:47 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2012-02-08 16:55:45 -0800 |
| commit | 95670001188911f9d466875cd68e3681f39df38a (patch) | |
| tree | 9610b1dc93b48119d69a422348bc867f2139757f /tools/perf/scripts/python | |
| parent | 294b27119f2e20643e71a0c1a1b511320a11e4c3 (diff) | |
staging: android/lowmemorykiller: Better mm handling
LMK should not directly check for task->mm. The reason is that the
process' threads may exit or detach its mm via use_mm(), but other
threads may still have a valid mm. To catch this we use
find_lock_task_mm(), which walks up all threads and returns an
appropriate task (with lock held).
Suggested-by: Oleg Nesterov <[email protected]>
Reviewed-by: Oleg Nesterov <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
Acked-by: KOSAKI Motohiro <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions