Re: [Qemu-block] [PATCH 06/12] nbd: Use low-level QIOChannel API in nbd_read_eof()

2019-02-18 Thread Eric Blake
On 2/18/19 10:18 AM, Kevin Wolf wrote: > Instead of using the convenience wrapper qio_channel_read_all_eof(), use > the lower level QIOChannel API. This means duplicating some code, but > we'll need this because this coroutine yield is special: We want it to > be interruptible so that nbd_client_at

[Qemu-block] [PATCH 06/12] nbd: Use low-level QIOChannel API in nbd_read_eof()

2019-02-18 Thread Kevin Wolf
Instead of using the convenience wrapper qio_channel_read_all_eof(), use the lower level QIOChannel API. This means duplicating some code, but we'll need this because this coroutine yield is special: We want it to be interruptible so that nbd_client_attach_aio_context() can correctly reenter the co