mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
c69de1bef5
commit
8612c68673
3 changed files with 18 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue