summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorKevin Wolf2020-09-24 17:27:00 +0200
committerKevin Wolf2020-10-02 15:46:40 +0200
commit8612c6867341e52416e63fce8b19ede8501c159a (patch)
treecfabef1314cf1f4d91a561e96d5670bd1595099c /include/block
parentblock/export: Move refcount from NBDExport to BlockExport (diff)
downloadqemu-8612c6867341e52416e63fce8b19ede8501c159a.tar.gz
qemu-8612c6867341e52416e63fce8b19ede8501c159a.tar.xz
qemu-8612c6867341e52416e63fce8b19ede8501c159a.zip
block/export: Move AioContext from NBDExport to BlockExport
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200924152717.287415-15-kwolf@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/export.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/block/export.h b/include/block/export.h
index 5236a35e12..e6f96f4e1e 100644
--- a/include/block/export.h
+++ b/include/block/export.h
@@ -41,6 +41,9 @@ struct BlockExport {
* the export.
*/
int refcount;
+
+ /* The AioContext whose lock protects this BlockExport object. */
+ AioContext *ctx;
};
BlockExport *blk_exp_add(BlockExportOptions *export, Error **errp);