mm, oom: ensure sysrq+f always passes valid zonelist
authorDavid Rientjes <rientjes@google.com>
Wed, 14 Nov 2012 09:15:19 +0000 (01:15 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Nov 2012 01:13:48 +0000 (17:13 -0800)
commit5318609519800617323b5fdb17c1d4fe12c3d794
treea02e56d063ea89db60f1d92e41df09cf738a2c60
parent18e0749aa825b8af12990521536f617d1405c37f
mm, oom: ensure sysrq+f always passes valid zonelist

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.

Signed-off-by: David Rientjes <rientjes@google.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/sysrq.c