summary refs log tree commit diff stats
path: root/python/qemu/machine/machine.py
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2023-09-11 11:46:07 +0200
committerKevin Wolf <kwolf@redhat.com>2023-09-20 17:46:01 +0200
commitad29eb3ddc6ca0081a4d6fa8620ec2b8053e98b9 (patch)
treeedee6c80bc9c8c97b82a5eb3a8752531133d249f /python/qemu/machine/machine.py
parentd21843491ac0edca0963d35306b31e17d70e017f (diff)
downloadfocaccia-qemu-ad29eb3ddc6ca0081a4d6fa8620ec2b8053e98b9.tar.gz
focaccia-qemu-ad29eb3ddc6ca0081a4d6fa8620ec2b8053e98b9.zip
block: Mark bdrv_replace_child_noperm() GRAPH_WRLOCK
Instead of taking the writer lock internally, require callers to already
hold it when calling bdrv_replace_child_noperm(). 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-9-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'python/qemu/machine/machine.py')
0 files changed, 0 insertions, 0 deletions