Re: [Qemu-devel] [PATCH v2 5/9] block/mirror: utilize job_exit shim

2018-08-27 Thread Max Reitz
On 2018-08-24 00:08, John Snow wrote: > Change the manual deferment to mirror_exit into the implicit > callback to job_exit and the mirror_exit callback. > > This does change the order of some bdrv_unref calls and job_completed, > but thanks to the new context in which we call .exit, this is safe

[Qemu-devel] [PATCH v2 5/9] block/mirror: utilize job_exit shim

2018-08-23 Thread John Snow
Change the manual deferment to mirror_exit into the implicit callback to job_exit and the mirror_exit callback. This does change the order of some bdrv_unref calls and job_completed, but thanks to the new context in which we call .exit, this is safe to defer the possible flushing of any nodes to t