aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--virt/kvm/async_pf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/virt/kvm/async_pf.c b/virt/kvm/async_pf.c
index 10df100c4514..0ced4f31bc65 100644
--- a/virt/kvm/async_pf.c
+++ b/virt/kvm/async_pf.c
@@ -80,12 +80,10 @@ static void async_pf_execute(struct work_struct *work)
80 80
81 might_sleep(); 81 might_sleep();
82 82
83 use_mm(mm);
84 down_read(&mm->mmap_sem); 83 down_read(&mm->mmap_sem);
85 get_user_pages(current, mm, addr, 1, 1, 0, NULL, NULL); 84 get_user_pages(current, mm, addr, 1, 1, 0, NULL, NULL);
86 up_read(&mm->mmap_sem); 85 up_read(&mm->mmap_sem);
87 kvm_async_page_present_sync(vcpu, apf); 86 kvm_async_page_present_sync(vcpu, apf);
88 unuse_mm(mm);
89 87
90 spin_lock(&vcpu->async_pf.lock); 88 spin_lock(&vcpu->async_pf.lock);
91 list_add_tail(&apf->link, &vcpu->async_pf.done); 89 list_add_tail(&apf->link, &vcpu->async_pf.done);