]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: Fix locking in stream APIs
authorJiri Denemark <jdenemar@redhat.com>
Tue, 17 Jul 2012 14:36:23 +0000 (16:36 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 17 Jul 2012 17:31:45 +0000 (19:31 +0200)
commit17f3be079c3c421eff203fcd311b0357ec42d801
tree02e6b454c6e80275568a37e85482dcd53667e495
parentc7d5cdb15ba8eca5c05ba0f5fc3de4ab6402f9ca
remote: Fix locking in stream APIs

Remote driver needs to make sure the driver lock is released before
entering client IO loop as that may block indefinitely in poll(). As a
direct consequence of not following this in stream APIs, tunneled
migration to a destination host which becomes non-responding may block
qemu driver. Luckily, if keepalive is turned for p2p migrations, both
remote and qemu drivers will get automagically unblocked after keepalive
timeout.
src/remote/remote_driver.c