lkml.org 
[lkml]   [2015]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch] mm, mempolicy: migrate_to_node should only migrate to node
Date
On Tue, Feb 24, 2015 at 03:18:06PM -0800, David Rientjes wrote:
> migrate_to_node() is intended to migrate a page from one source node to a
> target node.
>
> Today, migrate_to_node() could end up migrating to any node, not only the
> target node. This is because the page migration allocator,
> new_node_page() does not pass __GFP_THISNODE to alloc_pages_exact_node().
> This causes the target node to be preferred but allows fallback to any
> other node in order of affinity.
>
> Prevent this by allocating with __GFP_THISNODE. If memory is not
> available, -ENOMEM will be returned as appropriate.
>
> Signed-off-by: David Rientjes <rientjes@google.com>

Make sense to me.

Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>

\
 
 \ /
  Last update: 2015-02-27 07:41    [W:0.117 / U:0.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site