block: Mark bdrv_probe_blocksizes() and callers GRAPH_RDLOCK
This adds GRAPH_RDLOCK annotations to declare that callers of bdrv_probe_blocksizes() need to hold a reader lock for the graph because it calls bdrv_filter_bs(), which accesses bs->file/backing. Signed-off-by:Kevin Wolf <kwolf@redhat.com> Message-ID: <20231027155333.420094-2-kwolf@redhat.com> Reviewed-by:
Eric Blake <eblake@redhat.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Showing
- block/block-backend.c 2 additions, 0 deletionsblock/block-backend.c
- block/raw-format.c 2 additions, 1 deletionblock/raw-format.c
- include/block/block-global-state.h 1 addition, 1 deletioninclude/block/block-global-state.h
- include/block/block_int-common.h 2 additions, 1 deletioninclude/block/block_int-common.h
Please register or sign in to comment