The function blk_drain() calls bdrv_drained_begin(), which must be called with the graph unlocked.
Signed-off-by: Fiona Ebner <f.eb...@proxmox.com> --- include/system/block-backend-global-state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/system/block-backend-global-state.h b/include/system/block-backend-global-state.h index 1a134083b7..f6ec1174e6 100644 --- a/include/system/block-backend-global-state.h +++ b/include/system/block-backend-global-state.h @@ -78,7 +78,7 @@ int blk_make_zero(BlockBackend *blk, BdrvRequestFlags flags); void blk_aio_cancel(BlockAIOCB *acb); int blk_commit_all(void); bool blk_in_drain(BlockBackend *blk); -void blk_drain(BlockBackend *blk); +void GRAPH_UNLOCKED blk_drain(BlockBackend *blk); void GRAPH_UNLOCKED blk_drain_all(void); void blk_set_on_error(BlockBackend *blk, BlockdevOnError on_read_error, BlockdevOnError on_write_error); -- 2.39.5