diff options
| author | Oleg Nesterov <[email protected]> | 2010-08-09 17:18:43 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-08-09 20:44:55 -0700 |
| commit | 455c0e5fb03b67fa62bd12e3abe3fa484b9960c5 (patch) | |
| tree | 082cbecb8927e1c8e0c2cea5d5639e9c8f62eafe /tools/perf/scripts/python/bin | |
| parent | a9877cc2937889e5669114f28612b494384152a4 (diff) | |
oom: check PF_KTHREAD instead of !mm to skip kthreads
select_bad_process() thinks a kernel thread can't have ->mm != NULL, this
is not true due to use_mm().
Change the code to check PF_KTHREAD.
Reviewed-by: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: David Rientjes <[email protected]>
Acked-by: KOSAKI Motohiro <[email protected]>
Cc: Balbir Singh <[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