Files
qemu/include/io
Daniel P. Berrangé d9c46fdb86 io: separate freeing of tasks from marking them as complete
The original design of QIOTask was intended to simplify lifecycle
management by automatically freeing it when the task was marked as
complete. This overlooked the fact that when a QIOTask is used in
combination with a GSource, there may be times when the source
callback is never invoked. This is typically when a GSource is
released before any I/O event arrives. In such cases it is not
desirable to mark a QIOTask as complete, but it still needs to be
freed. To satisfy this, the task must be released manually.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
(cherry picked from commit 403d3a5f4a2d86bfe1f1f33aa337f2eb3a71182b)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2026-03-11 16:37:26 +03:00
..
2023-08-31 19:47:43 +02:00
2025-02-14 15:19:03 -03:00
2025-02-14 15:19:04 -03:00