From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9vSC-0003uc-8j for qemu-devel@nongnu.org; Tue, 30 Jun 2015 09:20:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9vSB-0003A8-Gc for qemu-devel@nongnu.org; Tue, 30 Jun 2015 09:20:00 -0400 From: Fam Zheng Date: Tue, 30 Jun 2015 21:19:42 +0800 Message-Id: <1435670385-625-2-git-send-email-famz@redhat.com> In-Reply-To: <1435670385-625-1-git-send-email-famz@redhat.com> References: <1435670385-625-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH RFC 1/4] aio: Introduce aio_set_fd_handler_pri List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , pbonzini@redhat.com, qemu-block@nongnu.org, Stefan Hajnoczi G_IO_PRI event is watched by slirp, add support of that to make future refactoring possible. Signed-off-by: Fam Zheng --- aio-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio-posix.c b/aio-posix.c index a633c6e..f22657e 100644 --- a/aio-posix.c +++ b/aio-posix.c @@ -63,7 +63,7 @@ void aio_set_fd_handler_pri(AioContext *ctx, node = find_aio_handler(ctx, fd); /* Are we deleting the fd handler? */ - if (!io_read && !io_write) { + if (!io_read && !io_write && !io_read_pri) { if (node) { g_source_remove_poll(&ctx->source, &node->pfd); -- 2.4.3