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>
This commit is contained in:

committed by
Linus Torvalds

parent
7e33912849
commit
0664e57ff0
@@ -80,7 +80,7 @@ static void async_pf_execute(struct work_struct *work)
|
||||
|
||||
might_sleep();
|
||||
|
||||
kvm_get_user_page_io(NULL, mm, addr, 1, NULL);
|
||||
get_user_pages_unlocked(NULL, mm, addr, 1, 1, 0, NULL);
|
||||
kvm_async_page_present_sync(vcpu, apf);
|
||||
|
||||
spin_lock(&vcpu->async_pf.lock);
|
||||
|
Reference in New Issue
Block a user