Re: [Qemu-devel] [PATCH v3 18/19] block: Use a single global AioWait

2018-09-24 Thread Max Reitz
On 20.09.18 18:19, Kevin Wolf wrote: > When draining a block node, we recurse to its parent and for subtree > drains also to its children. A single AIO_WAIT_WHILE() is then used to > wait for bdrv_drain_poll() to become true, which depends on all of the > nodes we recursed to. However, if the respe

Re: [Qemu-devel] [PATCH v3 18/19] block: Use a single global AioWait

2018-09-21 Thread Eric Blake
On 9/20/18 11:19 AM, Kevin Wolf wrote: When draining a block node, we recurse to its parent and for subtree drains also to its children. A single AIO_WAIT_WHILE() is then used to wait for bdrv_drain_poll() to become true, which depends on all of the nodes we recursed to. However, if the respectiv

[Qemu-devel] [PATCH v3 18/19] block: Use a single global AioWait

2018-09-20 Thread Kevin Wolf
When draining a block node, we recurse to its parent and for subtree drains also to its children. A single AIO_WAIT_WHILE() is then used to wait for bdrv_drain_poll() to become true, which depends on all of the nodes we recursed to. However, if the respective child or parent becomes quiescent and c