|
@@ -1077,15 +1077,9 @@ bool out_of_memory(struct oom_control *oc)
|
|
|
dump_header(oc, NULL);
|
|
|
panic("Out of memory and no killable processes...\n");
|
|
|
}
|
|
|
- if (oc->chosen && oc->chosen != (void *)-1UL) {
|
|
|
+ if (oc->chosen && oc->chosen != (void *)-1UL)
|
|
|
oom_kill_process(oc, !is_memcg_oom(oc) ? "Out of memory" :
|
|
|
"Memory cgroup out of memory");
|
|
|
- /*
|
|
|
- * Give the killed process a good chance to exit before trying
|
|
|
- * to allocate memory again.
|
|
|
- */
|
|
|
- schedule_timeout_killable(1);
|
|
|
- }
|
|
|
return !!oc->chosen;
|
|
|
}
|
|
|
|