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

Use the more generic get_user_pages_unlocked which has the additional
benefit of passing FAULT_FLAG_ALLOW_RETRY at the very first page fault
(which allows the first page fault in an unmapped area to be always able
to block indefinitely by being allowed to release the mmap_sem).

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Andres Lagar-Cavilla <andreslc@google.com>
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.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>
include/linux/kvm_host.h
virt/kvm/async_pf.c
virt/kvm/kvm_main.c