mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
[PATCH] Optimise oom kill of current task
When oom_killer kills current there's no need to call schedule_timeout_interruptible() since task must die ASAP. Signed-Off-By: Pavel Emelianov <xemul@sw.ru> Signed-Off-By: Kirill Korotaev <dev@openvz.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
6ce3c4c0ff
commit
2f659f462d
1 changed files with 3 additions and 2 deletions
|
@ -298,7 +298,8 @@ retry:
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Give "p" a good chance of killing itself before we
|
* Give "p" a good chance of killing itself before we
|
||||||
* retry to allocate memory.
|
* retry to allocate memory unless "p" is current
|
||||||
*/
|
*/
|
||||||
|
if (!test_thread_flag(TIF_MEMDIE))
|
||||||
schedule_timeout_interruptible(1);
|
schedule_timeout_interruptible(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue