[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v2 09/11] block: Introduce bdrv_aio_poll
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-block] [PATCH v2 09/11] block: Introduce bdrv_aio_poll |
Date: |
Thu, 27 Aug 2015 18:25:09 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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 <address@hidden>
> ---
> block/io.c | 8 ++++++++
> include/block/aio.h | 2 +-
> include/block/block.h | 2 ++
> 3 files changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/block/io.c b/block/io.c
> index d4bc83b..aca5dff 100644
> --- a/block/io.c
> +++ b/block/io.c
> @@ -2608,3 +2608,11 @@ void bdrv_flush_io_queue(BlockDriverState *bs)
> }
> bdrv_start_throttled_reqs(bs);
> }
> +
> +bool bdrv_aio_poll(AioContext *ctx, bool blocking)
> +{
> + bool ret;
> +
> + ret = aio_poll(ctx, blocking);
> + return ret;
> +}
> diff --git a/include/block/aio.h b/include/block/aio.h
> index fb70cc5..53fc400 100644
> --- a/include/block/aio.h
> +++ b/include/block/aio.h
> @@ -385,7 +385,7 @@ void aio_disable_enable_clients(AioContext *ctx, int
> clients_mask,
> * aio_disable_clients:
> * @ctx: the aio context
> *
> - * Disable the furthur processing by aio_poll(ctx) of clients.
> + * Disable the processing of clients by further aio_poll(ctx).
Should this be squashed into an earlier patch?
- Re: [Qemu-block] [PATCH v2 09/11] block: Introduce bdrv_aio_poll,
Stefan Hajnoczi <=