block: Protect bs->backing with graph_lock
Almost all functions that access bs->backing already take the graph lock now. Add locking to the remaining users and finally annotate the struct field itself as protected by the graph lock. Signed-off-by:Kevin Wolf <kwolf@redhat.com> Message-ID: <20231027155333.420094-18-kwolf@redhat.com> Reviewed-by:
Eric Blake <eblake@redhat.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Showing
- block.c 17 additions, 10 deletionsblock.c
- block/commit.c 4 additions, 1 deletionblock/commit.c
- block/mirror.c 15 additions, 5 deletionsblock/mirror.c
- block/qed.c 1 addition, 1 deletionblock/qed.c
- block/replication.c 6 additions, 1 deletionblock/replication.c
- block/vmdk.c 4 additions, 3 deletionsblock/vmdk.c
- include/block/block_int-common.h 1 addition, 1 deletioninclude/block/block_int-common.h
- tests/unit/test-bdrv-drain.c 18 additions, 4 deletionstests/unit/test-bdrv-drain.c
- tests/unit/test-bdrv-graph-mod.c 4 additions, 1 deletiontests/unit/test-bdrv-graph-mod.c
Loading
Please register or sign in to comment