projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
usb: dwc3: use ep0_next_event field
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
mm
/
oom_kill.c
diff --git
a/mm/oom_kill.c
b/mm/oom_kill.c
index b0be989d43656ce7b19d215a0dbcc450e9c5c510..626303b52f3ce0764d3bb1029f6bce8b5bcaa896 100644
(file)
--- a/
mm/oom_kill.c
+++ b/
mm/oom_kill.c
@@
-303,7
+303,7
@@
static struct task_struct *select_bad_process(unsigned int *ppoints,
do_each_thread(g, p) {
unsigned int points;
do_each_thread(g, p) {
unsigned int points;
- if (
!p->mm
)
+ if (
p->exit_state
)
continue;
if (oom_unkillable_task(p, mem, nodemask))
continue;
continue;
if (oom_unkillable_task(p, mem, nodemask))
continue;
@@
-319,6
+319,8
@@
static struct task_struct *select_bad_process(unsigned int *ppoints,
*/
if (test_tsk_thread_flag(p, TIF_MEMDIE))
return ERR_PTR(-1UL);
*/
if (test_tsk_thread_flag(p, TIF_MEMDIE))
return ERR_PTR(-1UL);
+ if (!p->mm)
+ continue;
if (p->flags & PF_EXITING) {
/*
if (p->flags & PF_EXITING) {
/*
@@
-487,7
+489,7
@@
static int oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order,
/*
* If any of p's children has a different mm and is eligible for kill,
/*
* If any of p's children has a different mm and is eligible for kill,
- * the one with the highest badness() score is sacrificed for its
+ * the one with the highest
oom_
badness() score is sacrificed for its
* parent. This attempts to lose the minimal amount of work done while
* still freeing memory.
*/
* parent. This attempts to lose the minimal amount of work done while
* still freeing memory.
*/