aboutsummaryrefslogtreecommitdiff
path: root/mm/cma.h
diff options
context:
space:
mode:
authorMel Gorman2015-08-06 15:46:13 -0700
committerLinus Torvalds2015-08-07 04:39:40 +0300
commit7ace99170789bc53cbb7e9e352d7a3851208fbcf (patch)
tree8563a1e739a73bf29bf93154b88ac7ef52209d1c /mm/cma.h
parentde54b9ac253787c366bbfb28d901a31954eb3511 (diff)
mm, meminit: allow early_pfn_to_nid to be used during runtime
early_pfn_to_nid() historically was inherently not SMP safe but only used during boot which is inherently single threaded or during hotplug which is protected by a giant mutex. With deferred memory initialisation there was a thread-safe version introduced and the early_pfn_to_nid would trigger a BUG_ON if used unsafely. Memory hotplug hit that check. This patch makes early_pfn_to_nid introduces a lock to make it safe to use during hotplug. Signed-off-by: Mel Gorman <mgorman@suse.de> Reported-by: Alex Ng <alexng@microsoft.com> Tested-by: Alex Ng <alexng@microsoft.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Nicolai Stange <nicstange@gmail.com> Cc: Dave Hansen <dave.hansen@intel.com> Cc: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/cma.h')
0 files changed, 0 insertions, 0 deletions