Re: [PATCH V12 03/15] iothread: track users with holder name
Markus Armbruster <[email protected]>
| Newsgroups | org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
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.