aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFiona Ebner <f.ebner@proxmox.com>2025-05-30 17:11:08 +0200
committerKevin Wolf <kwolf@redhat.com>2025-07-14 15:42:00 +0200
commit9ec8c4793f0f5a6f1d342a5d5eebeec516e3c107 (patch)
treeccde85dfa177a6e33d0f58b7213e434fc96b0265
parent54eb59d668d6e4e7584188628ca44f3e9bd39d17 (diff)
downloadqemu-9ec8c4793f0f5a6f1d342a5d5eebeec516e3c107.zip
qemu-9ec8c4793f0f5a6f1d342a5d5eebeec516e3c107.tar.gz
qemu-9ec8c4793f0f5a6f1d342a5d5eebeec516e3c107.tar.bz2
block-backend: mark blk_drain_all() as GRAPH_UNLOCKED
The function blk_drain_all() calls bdrv_drain_all_begin(), which must be called with the graph unlocked. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Message-ID: <20250530151125.955508-32-f.ebner@proxmox.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--include/system/block-backend-global-state.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/system/block-backend-global-state.h b/include/system/block-backend-global-state.h
index 35b5e83..a62dbdf 100644
--- a/include/system/block-backend-global-state.h
+++ b/include/system/block-backend-global-state.h
@@ -79,7 +79,7 @@ void blk_aio_cancel(BlockAIOCB *acb);
int blk_commit_all(void);
bool blk_in_drain(BlockBackend *blk);
void blk_drain(BlockBackend *blk);
-void blk_drain_all(void);
+void GRAPH_UNLOCKED blk_drain_all(void);
void blk_set_on_error(BlockBackend *blk, BlockdevOnError on_read_error,
BlockdevOnError on_write_error);
bool blk_supports_write_perm(BlockBackend *blk);