On Tue, Feb 04, Kevin Wolf wrote: > Now you call bdrv_acct_done() in the callback without having a matching > bdrv_acct_start(). You need to make it conditional in the callback.
I see. Stefano, Is ioreq_runio_qemu_aio symetric in this regard anyway? In case of BLKIF_OP_WRITE|BLKIF_OP_FLUSH_DISKCACHE and no ioreq->req.nr_segments then qemu_aio_complete is called anyway. Will qemu_aio_complete get down to the bdrv_acct_done call at all in this case? Olaf