[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.
pgpq1jiMw75UN.pgp
Description: PGP signature
- [Qemu-block] [PATCH 0/9] slirp: iohandler: Rebase onto aio, Fam Zheng, 2015/06/10
- [Qemu-block] [PATCH 2/9] iohandler: Use aio code, Fam Zheng, 2015/06/10
- Re: [Qemu-block] [PATCH 2/9] iohandler: Use aio code,
Stefan Hajnoczi <=
- [Qemu-block] [PATCH 3/9] main-loop: Move include of "qemu/sockets.h" to libslirp.h, Fam Zheng, 2015/06/10
- [Qemu-block] [PATCH 1/9] aio: Introduce aio_set_fd_handler_pri, Fam Zheng, 2015/06/10
- [Qemu-block] [PATCH 4/9] slirp: Remove dead code for "PROBE_CONN", Fam Zheng, 2015/06/10
- [Qemu-block] [PATCH 5/9] slirp: Add "poll_events" to struct socket, Fam Zheng, 2015/06/10
- [Qemu-block] [PATCH 6/9] slirp: Move icmp socket to iohandler, Fam Zheng, 2015/06/10
- [Qemu-block] [PATCH 8/9] slirp: Move tcb socket to iohandler, Fam Zheng, 2015/06/10
- [Qemu-block] [PATCH 7/9] slirp: Move udb socket to iohandler, Fam Zheng, 2015/06/10