[libvirt] [PATCH] Fix race condition in abort of stream
Eric Blake
eblake at redhat.com
Tue Aug 16 18:10:12 UTC 2011
On 08/16/2011 12:04 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange"<berrange at redhat.com>
>
> If a stream gets a server initiated abort, the client may still
> send an abort request before it receives the server side abort.
> This causes the server to send back another abort for the
> stream. Since the protocol defines that abort is the last thing
> to be sent, the client gets confused by this second abort from
> the server. If the stream is already shutdown, just drop any
> client requested abort, rather than sending back another message.
> This fixes the regression from previous versions.
>
>
> The first virsh session should be able to continue issues
s/issues/issuing/
>
> * src/rpc/virnetserverprogram.c: Drop abort requests
> for streams which no longer exist
> ---
> src/rpc/virnetserverprogram.c | 25 ++++++++-----------------
> 1 files changed, 8 insertions(+), 17 deletions(-)
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
More information about the libvir-list
mailing list