thp: bail out gup_fast on splitting pmd
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:46:42 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:40 +0000 (17:32 -0800)
commit64cc6ae001d70bc59e5f854e6b5678f59110df16
tree929358dabd522330ea145755ab0d0d7d27ac85b3
parentdb3eb96f4e6281b84dd33c8980dacc27f2efe177
thp: bail out gup_fast on splitting pmd

Force gup_fast to take the slow path and block if the pmd is splitting,
not only if it's none.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Rik van Riel <riel@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>
arch/x86/mm/gup.c