Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9f67a42 authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Paolo Bonzini
Browse files

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: default avatarDavidlohr Bueso <dbueso@suse.de>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 8cd641e3
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -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);