Skip to contentSkip to conversation

aio-posix: Improve comment around marking node deleted

PATCH New Fam Zheng 1 participant 1 message Aug 3, 2018

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 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.

---
 util/aio-posix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
util/aio-posix.c +1 -1
index 118bf5784b..9ca20d8cd9 100644
@@ -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;
Signature · 1 line
2.17.1