From: David Rientjes Date: Thu, 23 Jun 2011 01:13:04 +0000 (-0700) Subject: mm, hotplug: protect zonelist building with zonelists_mutex X-Git-Tag: v3.0-rc5~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f957db4fcdd8f03e186aa8f041f4049e76ab741c;p=pandora-kernel.git mm, hotplug: protect zonelist building with zonelists_mutex Commit 959ecc48fc75 ("mm/memory_hotplug.c: fix building of node hotplug zonelist") does not protect the build_all_zonelists() call with zonelists_mutex as needed. This can lead to races in constructing zonelist ordering if a concurrent build is underway. Protecting this with lock_memory_hotplug() is insufficient since zonelists can be rebuild though sysfs as well. Signed-off-by: David Rientjes Reviewed-by: KOSAKI Motohiro Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed