diff options
author | Kevin Wolf | 2020-09-24 17:27:00 +0200 |
---|---|---|
committer | Kevin Wolf | 2020-10-02 15:46:40 +0200 |
commit | 8612c6867341e52416e63fce8b19ede8501c159a (patch) | |
tree | cfabef1314cf1f4d91a561e96d5670bd1595099c /block/export | |
parent | block/export: Move refcount from NBDExport to BlockExport (diff) | |
download | qemu-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 'block/export')
-rw-r--r-- | block/export/export.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/export/export.c b/block/export/export.c index baba4e94ff..8635318ef1 100644 --- a/block/export/export.c +++ b/block/export/export.c @@ -49,12 +49,14 @@ BlockExport *blk_exp_add(BlockExportOptions *export, Error **errp) return drv->create(export, errp); } +/* Callers must hold exp->ctx lock */ void blk_exp_ref(BlockExport *exp) { assert(exp->refcount > 0); exp->refcount++; } +/* Callers must hold exp->ctx lock */ void blk_exp_unref(BlockExport *exp) { assert(exp->refcount > 0); |