]> git.baikalelectronics.ru Git - kernel.git/commit
mm, mempolicy: fix mbind() to do synchronous migration
authorDavid Rientjes <rientjes@google.com>
Thu, 21 Jun 2012 01:00:12 +0000 (18:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jun 2012 05:10:42 +0000 (22:10 -0700)
commite458f4b5c629c22ac7b0ed30cdcc18296b2c8534
treee317cd16d6ad065ba12f3b6618ffeb9685bd2872
parent72c2208e7b675b99d292eb8beb2b36905a260f6d
mm, mempolicy: fix mbind() to do synchronous migration

If the range passed to mbind() is not allocated on nodes set in the
nodemask, it migrates the pages to respect the constraint.

The final formal of migrate_pages() is a mode of type enum migrate_mode,
not a boolean.  do_mbind() is currently passing "true" which is the
equivalent of MIGRATE_SYNC_LIGHT.  This should instead be MIGRATE_SYNC
for synchronous page migration.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c