OSDN Git Service

signal: Have the oom killer detect coredumps using signal->core_state
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 19 Nov 2021 17:29:48 +0000 (11:29 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 8 Jan 2022 17:36:24 +0000 (11:36 -0600)
commit98b24b16b2aebffabf5b8670f44f19666c1e029f
treef2118f38256d24d330df4d423db86e5b02b88892
parentde77c3a5b95c95a4915142071643d94e3e1ada35
signal: Have the oom killer detect coredumps using signal->core_state

In preparation for removing the flag SIGNAL_GROUP_COREDUMP, change
__task_will_free_mem to test signal->core_state instead of the flag
SIGNAL_GROUP_COREDUMP.

Both fields are protected by siglock and both live in signal_struct so
there are no real tradeoffs here, just a change to which field is
being tested.

Link: https://lkml.kernel.org/r/20211213225350.27481-3-ebiederm@xmission.com
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
mm/oom_kill.c