KVM: async_pf: change async_pf_execute() to use get_user_pages(tsk => NULL)
authorOleg Nesterov <oleg@redhat.com>
Mon, 28 Apr 2014 15:03:00 +0000 (17:03 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:41 +0000 (17:18 +0200)
commit4c158ade8e722cd59ba1a6d8ca46be8427c8ac90
treeb787018234d32b34d5bc946c3d667b9eec31811c
parent2a1992b43b4e9f453e77e62740181ef665426c93
KVM: async_pf: change async_pf_execute() to use get_user_pages(tsk => NULL)

async_pf_execute() passes tsk == current to gup(), this is doesn't
hurt but unnecessary and misleading. "tsk" is only used to account
the number of faults and current is the random workqueue thread.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Suggested-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit e9545b9f8aeb63e05818e4b3250057260bc072aa)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/async_pf.c