On Fri, Aug 07, 2026 at 04:25:13AM +0800, Zhang Chen wrote:
> Add an explicitly unsafe accessor for legacy callers that cannot
> provide a matching holder lifecycle, and convert blockdev.c to use it.
> 
> Keep iothread_get_aio_context() temporarily so that later caller
> conversions remain independently buildable. It will be removed after
> all production callers have migrated.
> 
> New code should use iothread_ref_and_get_aio_context().
> 
> Signed-off-by: Zhang Chen <[email protected]>
> ---
>  blockdev.c                |  2 +-
>  include/system/iothread.h | 10 ++++++++++
>  iothread.c                |  5 +++++
>  3 files changed, 16 insertions(+), 1 deletion(-)

Reviewed-by: Stefan Hajnoczi <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to