Received: from eggs.gnu.org ([2001:4830:134:3::10]:50076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZV0vM-0006uo-44 for qemu-devel@nongnu.org; Thu, 27 Aug 2015 13:25:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZV0vI-0006BF-Ts for qemu-devel@nongnu.org; Thu, 27 Aug 2015 13:25:16 -0400 Date: Thu, 27 Aug 2015 18:25:09 +0100 From: Stefan Hajnoczi Message-ID: <20150827172509.GH4917@stefanha-thinkpad.redhat.com> References: <1438144934-23619-1-git-send-email-famz@redhat.com> <1438144934-23619-10-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1438144934-23619-10-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v2 09/11] block: Introduce bdrv_aio_poll List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-block@nongnu.org, qemu-devel@nongnu.org, stefanha@redhat.com 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/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?