Commit b4236f81 authored by Naohiro Ooiwa's avatar Naohiro Ooiwa Committed by Linus Torvalds

sysrq: add enable_mask in sysrq_moom_op

It is written in the Documentation/sysrq.txt that oom-killer is enabled
when we set "64" in /proc/sys/kernel/sysrq:

<Documentation/sysrq.txt>

    Here is the list of possible values in /proc/sys/kernel/sysrq:
         64 - enable signalling of processes (term, kill, oom-kill)
                                                          ^^^^^^^^

but enable_mask is not set in sysrq_moom_op.
Signed-off-by: default avatarNaohiro Ooiwa <nooiwa@miraclelinux.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 25ddbb18
...@@ -326,6 +326,7 @@ static struct sysrq_key_op sysrq_moom_op = { ...@@ -326,6 +326,7 @@ static struct sysrq_key_op sysrq_moom_op = {
.handler = sysrq_handle_moom, .handler = sysrq_handle_moom,
.help_msg = "Full", .help_msg = "Full",
.action_msg = "Manual OOM execution", .action_msg = "Manual OOM execution",
.enable_mask = SYSRQ_ENABLE_SIGNAL,
}; };
static void sysrq_handle_kill(int key, struct tty_struct *tty) static void sysrq_handle_kill(int key, struct tty_struct *tty)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment