]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Implement __get_user_pages_fast().
authorDavid S. Miller <davem@davemloft.net>
Fri, 24 Oct 2014 16:59:02 +0000 (09:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Oct 2014 16:59:02 +0000 (09:59 -0700)
commit3cbe7ace49062f968a26c4f81cc0c8e579c51d7c
treea173177966839fa3a1faff0f8fc37e3919e25d6b
parent037a89bb884f766f5e35efebc609c5ad09f286a8
sparc64: Implement __get_user_pages_fast().

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>
arch/sparc/mm/gup.c