]> www.infradead.org Git - users/dwmw2/qemu.git/commit
block/export: don't require AioContext lock around blk_exp_ref/unref()
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 16 May 2023 19:02:32 +0000 (15:02 -0400)
committerKevin Wolf <kwolf@redhat.com>
Tue, 30 May 2023 15:32:02 +0000 (17:32 +0200)
commit3d499a43a25571dcacb3a25330357af5e0be9bca
treecf6e2c4857a4488e8e0fd4669f6769d1337f1fa8
parent195332c1d9b7e510097495bda2a038467a5869f7
block/export: don't require AioContext lock around blk_exp_ref/unref()

The FUSE export calls blk_exp_ref/unref() without the AioContext lock.
Instead of fixing the FUSE export, adjust blk_exp_ref/unref() so they
work without the AioContext lock. This way it's less error-prone.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230516190238.8401-15-stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/export/export.c
block/export/vduse-blk.c
include/block/export.h