thp: split_huge_page anon_vma ordering dependency
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:46:53 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:42 +0000 (17:32 -0800)
commit05759d380a9d7f131a475186c07fce58ceaa8902
tree6c253f15176c89f6f8dfd80b1471bcf3e0a3e44e
parent8a07651ee8cdaa9e27cb4ae372aed347533770f5
thp: split_huge_page anon_vma ordering dependency

This documents how split_huge_page is safe vs new vma inserctions into the
anon_vma that may have already released the anon_vma->lock but not
established pmds yet when split_huge_page starts.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c
mm/rmap.c