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); /* Ignore errors with fixed-iothread=false */ set_context_errp = fixed_iothread ? errp : NULL; -- 2.49.0
