block: Mark bdrv_refresh_filename() and callers GRAPH_RDLOCK
This adds GRAPH_RDLOCK annotations to declare that callers of bdrv_refresh_filename() need to hold a reader lock for the graph because it accesses the children list of a node. Signed-off-by:Kevin Wolf <kwolf@redhat.com> Message-ID: <20230929145157.45443-11-kwolf@redhat.com> Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Showing
- block.c 18 additions, 5 deletionsblock.c
- block/nfs.c 1 addition, 1 deletionblock/nfs.c
- block/qapi.c 6 additions, 5 deletionsblock/qapi.c
- block/raw-format.c 2 additions, 0 deletionsblock/raw-format.c
- block/vhdx.c 4 additions, 0 deletionsblock/vhdx.c
- block/vhdx.h 3 additions, 2 deletionsblock/vhdx.h
- block/vmdk.c 33 additions, 18 deletionsblock/vmdk.c
- blockdev.c 13 additions, 0 deletionsblockdev.c
- include/block/block-global-state.h 6 additions, 3 deletionsinclude/block/block-global-state.h
- include/block/block_int-common.h 4 additions, 4 deletionsinclude/block/block_int-common.h
- include/block/qapi.h 7 additions, 9 deletionsinclude/block/qapi.h
- qemu-img.c 4 additions, 0 deletionsqemu-img.c
Loading
Please register or sign in to comment