block: Mark bdrv_snapshot_fallback() and callers GRAPH_RDLOCK
This adds GRAPH_RDLOCK annotations to declare that callers of bdrv_snapshot_fallback() 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-8-kwolf@redhat.com> Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Showing
- block/snapshot.c 29 additions, 6 deletionsblock/snapshot.c
- blockdev.c 9 additions, 0 deletionsblockdev.c
- include/block/block_int-common.h 10 additions, 8 deletionsinclude/block/block_int-common.h
- include/block/snapshot.h 14 additions, 10 deletionsinclude/block/snapshot.h
- qemu-img.c 5 additions, 0 deletionsqemu-img.c
Loading
Please register or sign in to comment