diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2017-09-13 13:08:21 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-09-15 16:57:12 +0200 |
commit | a0cff57bb2a41cb9cbf13d3203097b4156d8c0ae (patch) | |
tree | db128f5fac2c228a01f314174b20db01b3412316 /virt | |
parent | cc1b46803a671047be22f7832ef4a2bb3f63dd94 (diff) | |
download | linux-a0cff57bb2a41cb9cbf13d3203097b4156d8c0ae.tar.gz linux-a0cff57bb2a41cb9cbf13d3203097b4156d8c0ae.tar.bz2 linux-a0cff57bb2a41cb9cbf13d3203097b4156d8c0ae.zip |
kvm,x86: Fix apf_task_wake_one() wq serialization
During code inspection, the following potential race was seen:
CPU0 CPU1
kvm_async_pf_task_wait apf_task_wake_one
[L] swait_active(&n->wq)
[S] prepare_to_swait(&n.wq)
[L] if (!hlist_unhahed(&n.link))
schedule() [S] hlist_del_init(&n->link);
Properly serialize swait_active() checks such that a wakeup is
not missed.
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions