diff options
author | 2023-09-11 11:46:11 +0200 | |
---|---|---|
committer | 2023-09-20 17:46:01 +0200 | |
commit | afdaeb9ea06ea641ccc4226964b8e278af5e7685 (patch) | |
tree | ca548ea5c809b8c5c5825294e367b02b159f6deb /scripts/qapi/source.py | |
parent | block: Call transaction callbacks with lock held (diff) | |
download | qemu-afdaeb9ea06ea641ccc4226964b8e278af5e7685.tar.xz qemu-afdaeb9ea06ea641ccc4226964b8e278af5e7685.zip |
block: Mark bdrv_attach_child() GRAPH_WRLOCK
Instead of taking the writer lock internally, require callers to already
hold it when calling bdrv_attach_child_common(). 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>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230911094620.45040-13-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions