mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -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
|
@ -55,7 +55,8 @@ static int compress_open(BlockDriverState *bs, QDict *options, int flags,
|
|||
}
|
||||
|
||||
|
||||
static int64_t coroutine_fn compress_co_getlength(BlockDriverState *bs)
|
||||
static int64_t coroutine_fn GRAPH_RDLOCK
|
||||
compress_co_getlength(BlockDriverState *bs)
|
||||
{
|
||||
return bdrv_co_getlength(bs->file->bs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue