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)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Apr 2014 15:24:55 +0000 (17:24 +0200)
commite9545b9f8aeb63e05818e4b3250057260bc072aa
treef89d5a69691b0f61871604aa2b09ce140d236cc8
parentd72d946d0b649b79709b99b9d5cb7269fff8afaa
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>
virt/kvm/async_pf.c