Message ID | 1380724087-13927-18-git-send-email-jack@suse.cz (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Looks straightforward. On Wed, Oct 02, 2013 at 04:27:58PM +0200, Jan Kara wrote: > CC: Gleb Natapov <gleb@redhat.com> > CC: Paolo Bonzini <pbonzini@redhat.com> > CC: kvm@vger.kernel.org > Signed-off-by: Jan Kara <jack@suse.cz> > --- > virt/kvm/async_pf.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/virt/kvm/async_pf.c b/virt/kvm/async_pf.c > index 8a39dda7a325..8d4b39a4bc12 100644 > --- a/virt/kvm/async_pf.c > +++ b/virt/kvm/async_pf.c > @@ -67,9 +67,7 @@ static void async_pf_execute(struct work_struct *work) > might_sleep(); > > use_mm(mm); > - down_read(&mm->mmap_sem); > - get_user_pages(current, mm, addr, 1, 1, 0, &page, NULL); > - up_read(&mm->mmap_sem); > + get_user_pages_unlocked(current, mm, addr, 1, 1, 0, &page); > unuse_mm(mm); > > spin_lock(&vcpu->async_pf.lock); > -- > 1.8.1.4 -- Gleb. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/virt/kvm/async_pf.c b/virt/kvm/async_pf.c index 8a39dda7a325..8d4b39a4bc12 100644 --- a/virt/kvm/async_pf.c +++ b/virt/kvm/async_pf.c @@ -67,9 +67,7 @@ static void async_pf_execute(struct work_struct *work) might_sleep(); use_mm(mm); - down_read(&mm->mmap_sem); - get_user_pages(current, mm, addr, 1, 1, 0, &page, NULL); - up_read(&mm->mmap_sem); + get_user_pages_unlocked(current, mm, addr, 1, 1, 0, &page); unuse_mm(mm); spin_lock(&vcpu->async_pf.lock);
CC: Gleb Natapov <gleb@redhat.com> CC: Paolo Bonzini <pbonzini@redhat.com> CC: kvm@vger.kernel.org Signed-off-by: Jan Kara <jack@suse.cz> --- virt/kvm/async_pf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)