From c1e1e5fa8f25f9061b076a05045a6d4950d1a891 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Fri, 23 Oct 2015 11:08:08 +0800 Subject: aio: introduce aio_{disable,enable}_external Signed-off-by: Fam Zheng Signed-off-by: Kevin Wolf --- aio-posix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'aio-posix.c') diff --git a/aio-posix.c b/aio-posix.c index f0f912258f..0467f23a63 100644 --- a/aio-posix.c +++ b/aio-posix.c @@ -261,7 +261,8 @@ bool aio_poll(AioContext *ctx, bool blocking) /* fill pollfds */ QLIST_FOREACH(node, &ctx->aio_handlers, node) { - if (!node->deleted && node->pfd.events) { + if (!node->deleted && node->pfd.events + && aio_node_check(ctx, node->is_external)) { add_pollfd(node); } } -- cgit v1.2.3-55-g7522