qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 12/13] nbd: finish any pending coroutine


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 12/13] nbd: finish any pending coroutine
Date: Fri, 29 Nov 2013 16:25:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9

Il 29/11/2013 15:58, Marc-André Lureau ha scritto:
>      closesocket(client->sock);
> +    /* finish any pending coroutines */
> +    client->reply.handle = 0;
> +    client->reply.error = EIO;
> +    nbd_recv_coroutines_enter_all(client);

What about using the same shutdown(2) trick as the server?  Then you can
call nbd_recv_coroutines_enter_all() while client->sock is still valid,
which I find more robust.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]