]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit333fc86a2731761666db21919f634e091b8c2a37
treea02e56d063ea89db60f1d92e41df09cf738a2c60
parent1ba6b35c6503e722c9b723ae779bb3095fceb4d7
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