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
Description: PGP signature
