[Qemu-devel] [PATCH v2 07/16] block: change drain to look only at one child at a time

2016-03-19 Thread Paolo Bonzini
bdrv_requests_pending is checking children to also wait until internal requests (such as metadata writes) have completed. However, checking children is in general overkill. Children requests can be of two kinds: - requests caused by an operation on bs, e.g. a bdrv_aio_write to bs causing a write

Re: [Qemu-devel] [PATCH v2 07/16] block: change drain to look only at one child at a time

2016-03-19 Thread Fam Zheng
On Wed, 03/16 15:16, Paolo Bonzini wrote: > bdrv_requests_pending is checking children to also wait until internal > requests (such as metadata writes) have completed. However, checking > children is in general overkill. Children requests can be of two kinds: > > - requests caused by an operatio