summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorMel Gorman2013-10-07 12:28:44 +0200
committerIngo Molnar2013-10-09 12:39:43 +0200
commitb8916634b77bffb233d8f2f45703c80343457cc1 (patch)
treee2452c3d74d14ef387b9cce460f3b5597eca3676 /mm/memory.c
parentmm: Wait for THP migrations to complete during NUMA hinting faults (diff)
downloadkernel-qcow2-linux-b8916634b77bffb233d8f2f45703c80343457cc1.tar.gz
kernel-qcow2-linux-b8916634b77bffb233d8f2f45703c80343457cc1.tar.xz
kernel-qcow2-linux-b8916634b77bffb233d8f2f45703c80343457cc1.zip
mm: Prevent parallel splits during THP migration
THP migrations are serialised by the page lock but on its own that does not prevent THP splits. If the page is split during THP migration then the pmd_same checks will prevent page table corruption but the unlock page and other fix-ups potentially will cause corruption. This patch takes the anon_vma lock to prevent parallel splits during migration. Signed-off-by: Mel Gorman <mgorman@suse.de> Reviewed-by: Rik van Riel <riel@redhat.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1381141781-10992-7-git-send-email-mgorman@suse.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions