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:
6ce3c4c
)
[PATCH] Optimise oom kill of current task
author
Kirill Korotaev
<
[email protected]
>
Sun, 8 Jan 2006 09:01:05 +0000
(
01:01
-0800)
committer
Linus Torvalds
<
[email protected]
>
Mon, 9 Jan 2006 04:12:45 +0000
(20:12 -0800)
When oom_killer kills current there's no need to call
schedule_timeout_interruptible() since task must die ASAP.
Signed-Off-By: Pavel Emelianov <
[email protected]
>
Signed-Off-By: Kirill Korotaev <
[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 d348b9035955e5a0ba91af683880ac0e41996fd0..4748b906aff23451c9bbf838ddc1add16bbf1cc9 100644
(file)
--- a/
mm/oom_kill.c
+++ b/
mm/oom_kill.c
@@
-298,7
+298,8
@@
retry:
/*
* Give "p" a good chance of killing itself before we
- * retry to allocate memory
.
+ * retry to allocate memory
unless "p" is current
*/
- schedule_timeout_interruptible(1);
+ if (!test_thread_flag(TIF_MEMDIE))
+ schedule_timeout_interruptible(1);
}