mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
kvm,async_pf: Use swq_has_sleeper()
... 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>
This commit is contained in:
parent
8cd641e3c7
commit
b9f67a420b
1 changed files with 1 additions and 5 deletions
|
@ -106,11 +106,7 @@ static void async_pf_execute(struct work_struct *work)
|
||||||
|
|
||||||
trace_kvm_async_pf_completed(addr, gva);
|
trace_kvm_async_pf_completed(addr, gva);
|
||||||
|
|
||||||
/*
|
if (swq_has_sleeper(&vcpu->wq))
|
||||||
* This memory barrier pairs with prepare_to_wait's set_current_state()
|
|
||||||
*/
|
|
||||||
smp_mb();
|
|
||||||
if (swait_active(&vcpu->wq))
|
|
||||||
swake_up(&vcpu->wq);
|
swake_up(&vcpu->wq);
|
||||||
|
|
||||||
mmput(mm);
|
mmput(mm);
|
||||||
|
|
Loading…
Add table
Reference in a new issue