]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: use migrate_prep() instead of migrate_prep_local()
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 29 Nov 2012 03:18:02 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:18 +0000 (16:23 +1100)
commit3259367a629da416dbb77be5c252b754b20e060e
tree9c7b439902257a3b5606b303ab418322103caf41
parent21f040146fb9be5a7567948064cb2a044aa7acb6
mm: use migrate_prep() instead of migrate_prep_local()

__alloc_contig_migrate_range() should use all possible ways to get all the
pages migrated from the given memory range, so pruning per-cpu lru lists
for all CPUs is required, regadless the cost of such operation.  Otherwise
some pages which got stuck at per-cpu lru list might get missed by
migration procedure causing the contiguous allocation to fail.

Reported-by: SeongHwan Yoon <sunghwan.yun@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c