diff options
author | Kevin Wolf <kwolf@redhat.com> | 2023-02-03 16:22:01 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-02-23 19:49:32 +0100 |
commit | 167f748d8c1300196ac55fe3eef5518bf7b1f949 (patch) | |
tree | d3f3fdaa356b73219a4f99782af20e93e9ec412f /include/block/dirty-bitmap.h | |
parent | 48aef7944090fdddd6a89e07b790798cf31b56a4 (diff) | |
download | qemu-167f748d8c1300196ac55fe3eef5518bf7b1f949.zip qemu-167f748d8c1300196ac55fe3eef5518bf7b1f949.tar.gz qemu-167f748d8c1300196ac55fe3eef5518bf7b1f949.tar.bz2 |
block: Mark bdrv_*_dirty_bitmap() and callers GRAPH_RDLOCK
This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_*_dirty_bitmap() need to hold a reader lock for the graph.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230203152202.49054-23-kwolf@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block/dirty-bitmap.h')
-rw-r--r-- | include/block/dirty-bitmap.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/block/dirty-bitmap.h b/include/block/dirty-bitmap.h index 233535e..fa956de 100644 --- a/include/block/dirty-bitmap.h +++ b/include/block/dirty-bitmap.h @@ -36,12 +36,12 @@ int bdrv_dirty_bitmap_check(const BdrvDirtyBitmap *bitmap, uint32_t flags, void bdrv_release_dirty_bitmap(BdrvDirtyBitmap *bitmap); void bdrv_release_named_dirty_bitmaps(BlockDriverState *bs); -int coroutine_fn bdrv_co_remove_persistent_dirty_bitmap(BlockDriverState *bs, - const char *name, - Error **errp); -int co_wrapper bdrv_remove_persistent_dirty_bitmap(BlockDriverState *bs, - const char *name, - Error **errp); +int coroutine_fn GRAPH_RDLOCK +bdrv_co_remove_persistent_dirty_bitmap(BlockDriverState *bs, const char *name, + Error **errp); +int co_wrapper_bdrv_rdlock +bdrv_remove_persistent_dirty_bitmap(BlockDriverState *bs, const char *name, + Error **errp); void bdrv_disable_dirty_bitmap(BdrvDirtyBitmap *bitmap); void bdrv_enable_dirty_bitmap(BdrvDirtyBitmap *bitmap); |