mm: gup: use get_user_pages_unlocked within get_user_pages_fast
authorAndrea Arcangeli <aarcange@redhat.com>
Wed, 11 Feb 2015 23:27:23 +0000 (15:27 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Feb 2015 01:06:05 +0000 (17:06 -0800)
commita7b780750e1a1c7833812681e1f8fa30bbb06802
treee13f7ac217df9904b5cbc1cb624c9f7c9e2130ac
parent0fd71a56f41d4ffabeda1dae9ff5ed4f34d4e935
mm: gup: use get_user_pages_unlocked within get_user_pages_fast

This allows the get_user_pages_fast slow path to release the mmap_sem
before blocking.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andres Lagar-Cavilla <andreslc@google.com>
Cc: Peter Feiner <pfeiner@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mips/mm/gup.c
arch/s390/mm/gup.c
arch/sh/mm/gup.c
arch/sparc/mm/gup.c
arch/x86/mm/gup.c
mm/gup.c
mm/util.c