mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 05:21:55 -06:00
block: Mark bdrv_co_refresh_total_sectors() and callers GRAPH_RDLOCK
This adds GRAPH_RDLOCK annotations to declare that callers of bdrv_co_refresh_total_sectors() need to hold a reader lock for the graph. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20230203152202.49054-24-kwolf@redhat.com> Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
167f748d8c
commit
8ab8140a04
18 changed files with 45 additions and 23 deletions
|
@ -124,9 +124,10 @@ bdrv_co_copy_range_to(BdrvChild *src, int64_t src_offset,
|
|||
int64_t bytes, BdrvRequestFlags read_flags,
|
||||
BdrvRequestFlags write_flags);
|
||||
|
||||
int coroutine_fn bdrv_co_refresh_total_sectors(BlockDriverState *bs,
|
||||
int64_t hint);
|
||||
int co_wrapper_mixed
|
||||
int coroutine_fn GRAPH_RDLOCK
|
||||
bdrv_co_refresh_total_sectors(BlockDriverState *bs, int64_t hint);
|
||||
|
||||
int co_wrapper_mixed_bdrv_rdlock
|
||||
bdrv_refresh_total_sectors(BlockDriverState *bs, int64_t hint);
|
||||
|
||||
BdrvChild *bdrv_cow_child(BlockDriverState *bs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue