diff options
author | Fiona Ebner <f.ebner@proxmox.com> | 2025-05-30 17:11:15 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2025-07-14 15:42:11 +0200 |
commit | f3e84330f730b2f734d9fec6762d9f4ff570468d (patch) | |
tree | 2aa023800601fdbeca9f3bbd3390550b11415938 | |
parent | b326b127df9eef8e41818ff88d33f99ea54af984 (diff) | |
download | qemu-f3e84330f730b2f734d9fec6762d9f4ff570468d.zip qemu-f3e84330f730b2f734d9fec6762d9f4ff570468d.tar.gz qemu-f3e84330f730b2f734d9fec6762d9f4ff570468d.tar.bz2 |
block: mark blk_drain() as GRAPH_UNLOCKED
The function blk_drain() calls bdrv_drained_begin(), which must be
called with the graph unlocked.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20250530151125.955508-39-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.h | 2 |
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 1a13408..f6ec117 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); |