Re: [Qemu-devel] [PATCH v3 2/8] block: Add bdrv_aio_cancel_async

2014-09-02 Thread Stefan Hajnoczi
On Wed, Aug 27, 2014 at 10:49:10AM +0800, Fam Zheng wrote: > +/* Async version of aio cancel. The caller is not blocked if the acb > implements > + * cancel_async, otherwise fall back to bdrv_aio_cancel. In both cases, > acb->cb > + * is guarenteed to be called, before or after function returns.

[Qemu-devel] [PATCH v3 2/8] block: Add bdrv_aio_cancel_async

2014-08-26 Thread Fam Zheng
This is the async version of bdrv_aio_cancel, which doesn't block the caller. It guarantees that the cb is called either before returning or some time later. Signed-off-by: Fam Zheng --- block.c | 26 ++ include/block/aio.h | 1 + include/block/block.h |