[libvirt] [PATCH] remote: Fix locking in stream APIs

Michal Privoznik mprivozn at redhat.com
Wed Jul 18 07:46:12 UTC 2012


On 17.07.2012 19:30, Jiri Denemark wrote:
> 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 | 40 ++++++++++++++++++++++++++++------------
>  1 file changed, 28 insertions(+), 12 deletions(-)

ACK

Michal




More information about the libvir-list mailing list