From: Davidlohr Bueso Date: Wed, 13 Sep 2017 20:08:19 +0000 (-0700) Subject: kvm,async_pf: Use swq_has_sleeper() X-Git-Tag: v4.14-rc1~10^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9f67a420b3d76991592558af06e9cf1b8953b3d;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Paolo Bonzini --- diff --git a/virt/kvm/async_pf.c b/virt/kvm/async_pf.c index bb298a2..57bcb27 100644 --- 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);