diff options
| author | Davidlohr Bueso <[email protected]> | 2017-09-13 20:08:24 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2017-09-15 14:57:13 +0000 |
| commit | 4c0b4bc60f95de4741c89b41174760258343f091 (patch) | |
| tree | 60a9e39653ad9d755c962633f8ea63c4b88f76f1 /tools/lib/api/fs/tracing_path.c | |
| parent | kvm,powerpc: Serialize wq active checks in ops->vcpu_kick (diff) | |
| download | kernel-4c0b4bc60f95de4741c89b41174760258343f091.tar.gz kernel-4c0b4bc60f95de4741c89b41174760258343f091.zip | |
kvm,mips: Fix potential swait_active() races
For example, the following could occur, making us miss a wakeup:
CPU0 CPU1
kvm_vcpu_block kvm_mips_comparecount_func
[L] swait_active(&vcpu->wq)
[S] prepare_to_swait(&vcpu->wq)
[L] if (!kvm_vcpu_has_pending_timer(vcpu))
schedule() [S] queue_timer_int(vcpu)
Ensure that the swait_active() check is not hoisted over the interrupt.
Signed-off-by: Davidlohr Bueso <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions
