From b4236f81f2347096df650fb072f50d67bb6066a2 Mon Sep 17 00:00:00 2001 From: Naohiro Ooiwa Date: Wed, 15 Oct 2008 22:01:43 -0700 Subject: [PATCH] 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: 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: Naohiro Ooiwa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/char/sysrq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c index 8fdfe9c871e3..2aa79ab1930d 100644 --- a/drivers/char/sysrq.c +++ b/drivers/char/sysrq.c @@ -326,6 +326,7 @@ static struct sysrq_key_op sysrq_moom_op = { .handler = sysrq_handle_moom, .help_msg = "Full", .action_msg = "Manual OOM execution", + .enable_mask = SYSRQ_ENABLE_SIGNAL, }; static void sysrq_handle_kill(int key, struct tty_struct *tty)