projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cd641e
)
kvm,async_pf: Use swq_has_sleeper()
author
Davidlohr Bueso
<dave@stgolabs.net>
Wed, 13 Sep 2017 20:08:19 +0000
(13:08 -0700)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 15 Sep 2017 14:57:11 +0000
(16:57 +0200)
... as we've got the new helper now. This caller already
does the right thing, hence no changes in semantics.
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/async_pf.c
patch
|
blob
|
history
diff --git
a/virt/kvm/async_pf.c
b/virt/kvm/async_pf.c
index
bb298a2
..
57bcb27
100644
(file)
--- a/
virt/kvm/async_pf.c
+++ b/
virt/kvm/async_pf.c
@@
-106,11
+106,7
@@
static void async_pf_execute(struct work_struct *work)
trace_kvm_async_pf_completed(addr, gva);
- /*
- * This memory barrier pairs with prepare_to_wait's set_current_state()
- */
- smp_mb();
- if (swait_active(&vcpu->wq))
+ if (swq_has_sleeper(&vcpu->wq))
swake_up(&vcpu->wq);
mmput(mm);