block: Mark block_job_add_bdrv() GRAPH_WRLOCK
Instead of taking the writer lock internally, require callers to already hold it when calling block_job_add_bdrv(). These callers will typically already hold the graph lock once the locking work is completed, which means that they can't call functions that take it internally. Signed-off-by:Kevin Wolf <kwolf@redhat.com> Message-ID: <20231027155333.420094-6-kwolf@redhat.com> Reviewed-by:
Eric Blake <eblake@redhat.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Showing
- block/backup.c 15 additions, 6 deletionsblock/backup.c
- block/commit.c 5 additions, 0 deletionsblock/commit.c
- block/mirror.c 5 additions, 0 deletionsblock/mirror.c
- block/stream.c 4 additions, 0 deletionsblock/stream.c
- blockjob.c 5 additions, 3 deletionsblockjob.c
- include/block/blockjob.h 3 additions, 2 deletionsinclude/block/blockjob.h
- include/block/blockjob_int.h 5 additions, 4 deletionsinclude/block/blockjob_int.h
- tests/unit/test-bdrv-drain.c 3 additions, 0 deletionstests/unit/test-bdrv-drain.c
Loading
Please register or sign in to comment