KVM: async_pf: kill the unnecessary use_mm/unuse_mm async_pf_execute()
authorOleg Nesterov <oleg@redhat.com>
Mon, 21 Apr 2014 13:25:58 +0000 (15:25 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:41 +0000 (17:18 +0200)
commit2a1992b43b4e9f453e77e62740181ef665426c93
tree03f9f834c32a20a21aaa42c516a924373865874b
parentbc38de2312a2a078f2d5ad596888a131d811b143
KVM: async_pf: kill the unnecessary use_mm/unuse_mm async_pf_execute()

async_pf_execute() has no reasons to adopt apf->mm, gup(current, mm)
should work just fine even if current has another or NULL ->mm.

Recently kvm_async_page_present_sync() was added insedie the "use_mm"
section, but it seems that it doesn't need current->mm too.

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