mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
[PATCH] oom-killer disable for iscsi/lvm2/multipath userland critical sections
iscsi/lvm2/multipath needs guaranteed protection from the oom-killer, so make the magical value of -17 in /proc/<pid>/oom_adj defeat the oom-killer altogether. (akpm: we still need to document oom_adj and friends in Documentation/filesystems/proc.txt!) Signed-off-by: Andrea Arcangeli <andrea@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
d345734267
commit
79befd0c08
3 changed files with 5 additions and 2 deletions
|
@ -145,7 +145,7 @@ static struct task_struct * select_bad_process(void)
|
|||
do_posix_clock_monotonic_gettime(&uptime);
|
||||
do_each_thread(g, p)
|
||||
/* skip the init task with pid == 1 */
|
||||
if (p->pid > 1) {
|
||||
if (p->pid > 1 && p->oomkilladj != OOM_DISABLE) {
|
||||
unsigned long points;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue