Re: [PATCH V12 03/15] iothread: track users with holder name

Stefan Hajnoczi <[email protected]>
Newsgroups gmane.comp.emulators.qemu
Message-ID <20260818203145.GA222512@fedora>
On Sat, Aug 15, 2026 at 01:48:17AM +0800, Zhang Chen wrote:
> 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]>
> ---
>  include/system/iothread.h | 22 ++++++++++++++++++++++
>  iothread.c                | 24 +++++++++++++++++++++++-
>  2 files changed, 45 insertions(+), 1 deletion(-)

Reviewed-by: Stefan Hajnoczi <[email protected]>
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmqEwTEACgkQnKSrs4Gr
c8jqvggAjviwgvl1VMB2uXdp3yM/SFcgdVbGO10A9b9By2m9pyhgDXLLIjZSH6tx
CpTHaOmyzPdhnAbyyLOjoDX3ba5wtazNkquw1NAdOpR+TlKuf8mzGpX7EN0VERj/
gcf8gbOtb2034i5uZt9MDNVeakijdLbcaoWoC5dOKz1aZQNkFOug3kunPcpoX869
dFVgXipKFg5lSZuSW6+xQEtWN86d4RPGEbDjcsaHphRGE5FdxqjSB2of6fqtrGgo
wCjuxgBzeR2QdQOj/KmEqtDw7WnoDVHcWn3HT1k0x4dxP4O/gZj4mLIgX2aFm8AD
txRSsglI2T9CkVx9NJ0QzgLrSISIbA==
=HXRP
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.