So that external events are not processed in nested event loops.
Signed-off-by: Fam Zheng <[email protected]>
---
block/io.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/block/io.c b/block/io.c
index 5f5e575..c98fa92 100644
--- a/block/io.c
+++ b/block/io.c
@@ -2611,5 +2611,6 @@ void bdrv_flush_io_queue(BlockDriverState *bs)
bool bdrv_aio_poll(AioContext *ctx, bool blocking)
{
- return aio_poll(ctx, blocking);
+ return aio_poll_clients(ctx, blocking,
+ AIO_CLIENT_PROTOCOL | AIO_CLIENT_CONTEXT);
}
--
2.4.3