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