On Mon, Aug 24, 2026 at 3:24 PM Markus Armbruster <[email protected]> wrote:
>
> Zhang Chen <[email protected]> writes:
>
> > Introduce iothread_ref_and_get_aio_context() with a holder argument
> > and its counterpart iothread_unref_and_put_aio_context().
> >
> > Previously, users of an IOThread AioContext did not explicitly record
> > their identity, making it difficult to debug which devices or
> > subsystems were pinning an IOThread.
> >
> > Registering a holder takes an IOThread object reference so that the
> > IOThread and its AioContext stay alive until the matching put
> > operation. Document the ownership and BQL requirements.
> >
> > Signed-off-by: Zhang Chen <[email protected]>
>
> Does this add tracking, or just the tracking infrastructure?
>
> If the latter, the subject is misleading.

You're right. I'll change the subject to:
“iothread: add holder-aware AioContext accessors”

and clarify this in the commit message.

By the way, the V13 series has been sent, please comments it here:
https://lists.gnu.org/archive/html/qemu-devel/2026-08/msg05327.html

Thanks
Chen

>

Reply via email to