sparc64: Implement __get_user_pages_fast().
authorDavid S. Miller <davem@davemloft.net>
Fri, 24 Oct 2014 16:59:02 +0000 (09:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:38:28 +0000 (09:38 -0700)
commitf5dcee1c537f977545fc9652ace5c2ac93a519ca
tree8183a06646a046a113c47397365b028e473014ba
parentd9cd30ad9f2d40780894e30bb23d168db1b5dfb8
sparc64: Implement __get_user_pages_fast().

[ Upstream commit 06090e8ed89ea2113a236befb41f71d51f100e60 ]

It is not sufficient to only implement get_user_pages_fast(), you
must also implement the atomic version __get_user_pages_fast()
otherwise you end up using the weak symbol fallback implementation
which simply returns zero.

This is dangerous, because it causes the futex code to loop forever
if transparent hugepages are supported (see get_futex_key()).

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/mm/gup.c