From: Fam Zheng Date: Fri, 3 Aug 2018 06:39:17 +0000 (+0800) Subject: aio-posix: Improve comment around marking node deleted X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=37a81812f7b8367422a039eb09d915df543983ee;p=qmiga%2Fqemu.git aio-posix: Improve comment around marking node deleted The counter is for qemu_lockcnt_inc/dec sections (read side), qemu_lockcnt_lock/unlock is for the write side. Suggested-by: Paolo Bonzini Signed-off-by: Fam Zheng Message-Id: <20180803063917.30292-1-famz@redhat.com> Signed-off-by: Fam Zheng --- diff --git a/util/aio-posix.c b/util/aio-posix.c index b5c609b68b..131ba6b4a8 100644 --- a/util/aio-posix.c +++ b/util/aio-posix.c @@ -232,7 +232,7 @@ void aio_set_fd_handler(AioContext *ctx, g_source_remove_poll(&ctx->source, &node->pfd); } - /* If the lock is held, just mark the node as deleted */ + /* If a read is in progress, just mark the node as deleted */ if (qemu_lockcnt_count(&ctx->list_lock)) { node->deleted = 1; node->pfd.revents = 0;