]> git.proxmox.com Git - mirror_qemu.git/commit
mirror: Require GRAPH_RDLOCK for accessing a node's parent list
authorKevin Wolf <kwolf@redhat.com>
Thu, 4 May 2023 11:57:42 +0000 (13:57 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 May 2023 12:16:53 +0000 (14:16 +0200)
commit9c93652da6784314519968c65c05fcaccfe56193
tree72f1a58fede500558801dcbd46077abf59eb236b
parent622d30af9930e9eb791cf6344633c256e328a7ef
mirror: Require GRAPH_RDLOCK for accessing a node's parent list

This adds GRAPH_RDLOCK annotations to declare that functions accessing
the parent list of a node need to hold a reader lock for the graph. As
it happens, they already do.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230504115750.54437-13-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/mirror.c