Re: [Qemu-devel] [Qemu-block] [PATCH v2 09/11] block: Introduce bdrv_aio_poll

2015-08-28 Thread Stefan Hajnoczi
On Wed, Jul 29, 2015 at 12:42:12PM +0800, Fam Zheng wrote: > +bool bdrv_aio_poll(AioContext *ctx, bool blocking) > +{ > +bool ret; > + > +ret = aio_poll(ctx, blocking); > +return ret; > +} This function would fit into bdrv_*() APIs better if the first argument was BlockDriverState *bs

Re: [Qemu-devel] [Qemu-block] [PATCH v2 09/11] block: Introduce bdrv_aio_poll

2015-08-27 Thread Stefan Hajnoczi
On Wed, Jul 29, 2015 at 12:42:12PM +0800, Fam Zheng wrote: > This call is introduced simply as a wrapper of aio_poll, but it makes it > is easy to change the polled client types. > > Signed-off-by: Fam Zheng > --- > block/io.c| 8 > include/block/aio.h | 2 +- > include/bl