[libvirt] [PATCH] remote: Fix locking in stream APIs
Jiri Denemark
jdenemar at redhat.com
Wed Jul 18 08:26:47 UTC 2012
On Wed, Jul 18, 2012 at 09:46:12 +0200, Michal Privoznik wrote:
> 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
Thanks, pushed.
Jirka
More information about the libvir-list
mailing list