On Thu, Mar 05, 2026 at 10:24:54PM +0800, Zhang Chen wrote: > It seems we cannot find the corresponding resources > (the iothread and path) when deleting them in qmp_block_export_del. > The original method will be retained for the time being. > > Signed-off-by: Zhang Chen <[email protected]> > --- > block/export/export.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/block/export/export.c b/block/export/export.c > index f3bbf11070..98aca7f8c9 100644 > --- a/block/export/export.c > +++ b/block/export/export.c > @@ -127,7 +127,12 @@ BlockExport *blk_exp_add(BlockExportOptions *export, > Error **errp) > goto fail; > } > > - new_ctx = iothread_get_aio_context(iothread); > + /* > + * It seems we cannot find the corresponding resources > + * (the iothread and path) when deleting them in > qmp_block_export_del. > + * The original method will be retained for the time being. > + */ > + new_ctx = iothread_get_aio_context(iothread, NULL);
This needs to be implemented properly in order to be merged. BlockExport has an AioContext field. It's possible to modify the code to keep an IOThread pointer too. Stefan
signature.asc
Description: PGP signature
