projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26ebc98
)
oom: kill duplicate OOM_DISABLE check
author
KOSAKI Motohiro
<
[email protected]
>
Tue, 10 Aug 2010 00:19:37 +0000
(17:19 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 10 Aug 2010 03:45:01 +0000
(20:45 -0700)
select_bad_process() and badness() have the same OOM_DISABLE check. This
patch kills one.
Signed-off-by: KOSAKI Motohiro <
[email protected]
>
Reviewed-by: Minchan Kim <
[email protected]
>
Cc: David Rientjes <
[email protected]
>
Cc: KAMEZAWA Hiroyuki <
[email protected]
>
Cc: Oleg Nesterov <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/oom_kill.c
patch
|
blob
|
history
diff --git
a/mm/oom_kill.c
b/mm/oom_kill.c
index 867bd26274b4a16ea4d66638a962e9664250405c..011181ed41e3b44fa5f59e9a736b3ce43f53c9ee 100644
(file)
--- a/
mm/oom_kill.c
+++ b/
mm/oom_kill.c
@@
-350,9
+350,6
@@
static struct task_struct *select_bad_process(unsigned long *ppoints,
*ppoints = ULONG_MAX;
}
- if (p->signal->oom_adj == OOM_DISABLE)
- continue;
-
points = badness(p, mem, nodemask, uptime.tv_sec);
if (points > *ppoints || !chosen) {
chosen = p;