From: David Rientjes <rientjes@google.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>, KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>, Michal Hocko <mhocko@suse.cz>, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [patch 1/4] mm, oom: ensure sysrq+f always passes valid zonelist Date: Wed, 14 Nov 2012 01:15:19 -0800 (PST) [thread overview] Message-ID: <alpine.DEB.2.00.1211140111190.32125@chino.kir.corp.google.com> (raw) With hotpluggable and memoryless nodes, it's possible that node 0 will not be online, so use the first online node's zonelist rather than hardcoding node 0 to pass a zonelist with all zones to the oom killer. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David Rientjes <rientjes@google.com> --- drivers/tty/sysrq.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -346,7 +346,8 @@ static struct sysrq_key_op sysrq_term_op = { static void moom_callback(struct work_struct *ignored) { - out_of_memory(node_zonelist(0, GFP_KERNEL), GFP_KERNEL, 0, NULL, true); + out_of_memory(node_zonelist(first_online_node, GFP_KERNEL), GFP_KERNEL, + 0, NULL, true); } static DECLARE_WORK(moom_work, moom_callback);
WARNING: multiple messages have this Message-ID (diff)
From: David Rientjes <rientjes@google.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>, KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>, Michal Hocko <mhocko@suse.cz>, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [patch 1/4] mm, oom: ensure sysrq+f always passes valid zonelist Date: Wed, 14 Nov 2012 01:15:19 -0800 (PST) [thread overview] Message-ID: <alpine.DEB.2.00.1211140111190.32125@chino.kir.corp.google.com> (raw) With hotpluggable and memoryless nodes, it's possible that node 0 will not be online, so use the first online node's zonelist rather than hardcoding node 0 to pass a zonelist with all zones to the oom killer. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David Rientjes <rientjes@google.com> --- drivers/tty/sysrq.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -346,7 +346,8 @@ static struct sysrq_key_op sysrq_term_op = { static void moom_callback(struct work_struct *ignored) { - out_of_memory(node_zonelist(0, GFP_KERNEL), GFP_KERNEL, 0, NULL, true); + out_of_memory(node_zonelist(first_online_node, GFP_KERNEL), GFP_KERNEL, + 0, NULL, true); } static DECLARE_WORK(moom_work, moom_callback); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2012-11-14 9:15 UTC|newest] Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-11-14 9:15 David Rientjes [this message] 2012-11-14 9:15 ` [patch 1/4] mm, oom: ensure sysrq+f always passes valid zonelist David Rientjes 2012-11-14 9:15 ` [patch 2/4] mm, oom: cleanup pagefault oom handler David Rientjes 2012-11-14 9:15 ` David Rientjes 2012-11-14 13:32 ` Michal Hocko 2012-11-14 13:32 ` Michal Hocko 2012-11-15 8:45 ` Kamezawa Hiroyuki 2012-11-15 8:45 ` Kamezawa Hiroyuki 2012-11-15 9:02 ` Michal Hocko 2012-11-15 9:02 ` Michal Hocko 2012-11-15 21:01 ` David Rientjes 2012-11-15 21:01 ` David Rientjes 2012-11-14 9:15 ` [patch 3/4] mm, oom: remove redundant sleep in " David Rientjes 2012-11-14 9:15 ` David Rientjes 2012-11-14 13:45 ` Michal Hocko 2012-11-14 13:45 ` Michal Hocko 2012-11-15 8:46 ` Kamezawa Hiroyuki 2012-11-15 8:46 ` Kamezawa Hiroyuki 2012-11-14 9:15 ` [patch 4/4] mm, oom: remove statically defined arch functions of same name David Rientjes 2012-11-14 9:15 ` David Rientjes 2012-11-14 9:15 ` David Rientjes 2012-11-14 9:15 ` David Rientjes 2012-11-14 13:47 ` Michal Hocko 2012-11-14 13:47 ` Michal Hocko 2012-11-14 13:47 ` Michal Hocko 2012-11-14 13:47 ` Michal Hocko 2012-11-15 8:48 ` Kamezawa Hiroyuki 2012-11-15 8:48 ` Kamezawa Hiroyuki 2012-11-15 8:48 ` Kamezawa Hiroyuki 2012-11-15 8:48 ` Kamezawa Hiroyuki 2012-11-14 10:50 ` [patch 1/4] mm, oom: ensure sysrq+f always passes valid zonelist Michal Hocko 2012-11-14 10:50 ` Michal Hocko 2012-11-14 11:03 ` David Rientjes 2012-11-14 11:03 ` David Rientjes 2012-11-14 13:31 ` Michal Hocko 2012-11-14 13:31 ` Michal Hocko 2012-11-15 8:41 ` Kamezawa Hiroyuki 2012-11-15 8:41 ` Kamezawa Hiroyuki
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=alpine.DEB.2.00.1211140111190.32125@chino.kir.corp.google.com \ --to=rientjes@google.com \ --cc=akpm@linux-foundation.org \ --cc=gregkh@linuxfoundation.org \ --cc=kamezawa.hiroyu@jp.fujitsu.com \ --cc=kosaki.motohiro@jp.fujitsu.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=mhocko@suse.cz \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.