Re: [Qemu-devel] [PATCH] nbd-client: fix handling of hungup connections

2017-03-22 Thread Max Reitz
On 14.03.2017 12:11, Paolo Bonzini wrote: > After the switch to reading replies in a coroutine, nothing is > reentering pending receive coroutines if the connection hangs. > Move nbd_recv_coroutines_enter_all to the reply read coroutine, > which is the place where hangups are detected. nbd_teardow

Re: [Qemu-devel] [PATCH] nbd-client: fix handling of hungup connections

2017-03-15 Thread Max Reitz
On 14.03.2017 12:11, Paolo Bonzini wrote: > After the switch to reading replies in a coroutine, nothing is > reentering pending receive coroutines if the connection hangs. > Move nbd_recv_coroutines_enter_all to the reply read coroutine, > which is the place where hangups are detected. nbd_teardow

Re: [Qemu-devel] [PATCH] nbd-client: fix handling of hungup connections

2017-03-14 Thread Eric Blake
On 03/14/2017 06:11 AM, Paolo Bonzini wrote: > After the switch to reading replies in a coroutine, nothing is > reentering pending receive coroutines if the connection hangs. > Move nbd_recv_coroutines_enter_all to the reply read coroutine, > which is the place where hangups are detected. nbd_tear

[Qemu-devel] [PATCH] nbd-client: fix handling of hungup connections

2017-03-14 Thread Paolo Bonzini
After the switch to reading replies in a coroutine, nothing is reentering pending receive coroutines if the connection hangs. Move nbd_recv_coroutines_enter_all to the reply read coroutine, which is the place where hangups are detected. nbd_teardown_connection can simply wait for the reply read co