Dash:
[t2-trunk.git] / architecture / riscv / package / linux / oom_kill_allocating_task.patch
blob1de2f41384d776c3c629793cb1c2596a5d015ef7
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: architecture/riscv/package/*/oom_kill_allocating_task.patch
5 # Copyright (C) 2021 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Let's try to default to the simple scheme of just killing the allocating
18 task instead of excessively scanning to kill X, wayland, or openssh away :-/
20 - René Rebe <rene@exactcode.de>
22 --- linux-5.10/mm/oom_kill.c.vanilla 2021-02-13 16:45:34.601875404 +0100
23 +++ linux-5.10/mm/oom_kill.c 2021-02-13 16:46:01.921873776 +0100
24 @@ -52,7 +52,7 @@
25 #include <trace/events/oom.h>
27 int sysctl_panic_on_oom;
28 -int sysctl_oom_kill_allocating_task;
29 +int sysctl_oom_kill_allocating_task = 1;
30 int sysctl_oom_dump_tasks = 1;