aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2023-09-11 11:46:13 +0200
committerKevin Wolf <kwolf@redhat.com>2023-09-20 17:46:01 +0200
commitbce73bc25bd0aa1fee21b37980c8f04b49c6b44b (patch)
tree76b47d8c87548f5dc1d1d4cfcfc2f56c93b75ecb /scripts/qapi/source.py
parentblock: Mark bdrv_parent_perms_conflict() and callers GRAPH_RDLOCK (diff)
downloadqemu-bce73bc25bd0aa1fee21b37980c8f04b49c6b44b.tar.xz
qemu-bce73bc25bd0aa1fee21b37980c8f04b49c6b44b.zip
block: Mark bdrv_get_cumulative_perm() and callers GRAPH_RDLOCK
The function reads the parents list, so it needs to hold the graph lock. This happens to result in BlockDriver.bdrv_set_perm() to be called with the graph lock held. For consistency, make it the same for all of the BlockDriver callbacks for updating permissions and annotate the function pointers with GRAPH_RDLOCK_PTR. 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-15-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