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