mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 10:07:26 -04:00
KVM: Don't wrap schedule() with vcpu_put()/vcpu_load()
Preemption notifiers will do that for us automatically. Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -1689,9 +1689,7 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu)
|
||||
if (signal_pending(current))
|
||||
break;
|
||||
|
||||
vcpu_put(vcpu);
|
||||
schedule();
|
||||
vcpu_load(vcpu);
|
||||
}
|
||||
|
||||
finish_wait(&vcpu->wq, &wait);
|
||||
|
||||
Reference in New Issue
Block a user