]> Git Repo - linux.git/commit
mm/memory_hotplug.c: fix building of node hotplug zonelist
authorKAMEZAWA Hiroyuki <[email protected]>
Wed, 15 Jun 2011 22:08:38 +0000 (15:08 -0700)
committerLinus Torvalds <[email protected]>
Thu, 16 Jun 2011 03:04:01 +0000 (20:04 -0700)
commit959ecc48fc7506b9d7825ea70e40d92d9b308033
tree31dc427bf7153c8bf47d72413386c4eb632a602d
parentde695e159e3fd679594eb45449d2638d54434c32
mm/memory_hotplug.c: fix building of node hotplug zonelist

During memory hotplug we refresh zonelists when we online a page in a new
zone.  It means that the node's zonelist is not initialized until pages
are onlined.  So for example, "nid" passed by MEM_GOING_ONLINE notifier
will point to NODE_DATA(nid) which has no zone fallback list.  Moreover,
if we hot-add cpu-only nodes, alloc_pages() will do no fallback.

This patch makes a zonelist when a new pgdata is available.

Note: in production, at fujitsu, memory should be onlined before cpu
      and our server didn't have any memory-less nodes and had no problems.

      But recent changes in MEM_GOING_ONLINE+page_cgroup
      will access not initialized zonelist of node.
      Anyway, there are memory-less node and we need some care.

Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Dave Hansen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memory_hotplug.c
This page took 0.052149 seconds and 4 git commands to generate.