aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-01-27 11:53:11 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-01-27 11:53:11 +0000
commit10aff247d5653cb7beacf2f620639caf5f0e30ca (patch)
treefde8bb4c6d7f2813f1c370d39d4310bc9f433e70
parentb944b2ec46702651ac89a166840ddaff2a11fb5a (diff)
parent59c9f437c59a4bf0594ed300d28fb24c645963a5 (diff)
Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging
# gpg: Signature made Thu 26 Jan 2017 10:19:35 GMT # gpg: using RSA key 0x9CA4ABB381AB73C8 # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" # gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8 * remotes/stefanha/tags/block-pull-request: aio-posix: honor is_external in AioContext polling Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--aio-posix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/aio-posix.c b/aio-posix.c
index 9453d83743..a8d7090bd8 100644
--- a/aio-posix.c
+++ b/aio-posix.c
@@ -508,7 +508,8 @@ static bool run_poll_handlers_once(AioContext *ctx)
QLIST_FOREACH_RCU(node, &ctx->aio_handlers, node) {
if (!node->deleted && node->io_poll &&
- node->io_poll(node->opaque)) {
+ aio_node_check(ctx, node->is_external) &&
+ node->io_poll(node->opaque)) {
progress = true;
}