qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH 2/9] iohandler: Use aio code


From: Stefan Hajnoczi
Subject: Re: [Qemu-block] [PATCH 2/9] iohandler: Use aio code
Date: Tue, 16 Jun 2015 14:57:38 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, Jun 10, 2015 at 04:59:44PM +0800, Fam Zheng wrote:
> diff --git a/iohandler.c b/iohandler.c
> index 826f713..f5d7704 100644
> --- a/iohandler.c
> +++ b/iohandler.c
> @@ -32,111 +32,39 @@
>  #include <sys/wait.h>
>  #endif
>  
> -typedef struct IOHandlerRecord {
> -    IOHandler *fd_read;
> -    IOHandler *fd_write;
> -    void *opaque;
> -    QLIST_ENTRY(IOHandlerRecord) next;
> -    int fd;
> -    int pollfds_idx;
> -    bool deleted;
> -} IOHandlerRecord;
> +static AioContext *iohandler_ctx;

Please include a comment explaining why this AioContext is needed in
addition to the global qemu_aio_context.

Attachment: pgpq1jiMw75UN.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]