mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08: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