]> git.proxmox.com Git - mirror_qemu.git/commit - include/block/block_int-common.h
block: Mark bdrv_refresh_limits() and callers GRAPH_RDLOCK
authorKevin Wolf <kwolf@redhat.com>
Thu, 4 May 2023 11:57:50 +0000 (13:57 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 May 2023 12:16:54 +0000 (14:16 +0200)
commite19b157f3c66c44e3b89cb50a2030f0187b968e9
tree01196fee542b91b06ff8d42066d2b5a40c873c0e
parent533c6e4ee8885cb9e7c6ac36e8e9fa92bea64f97
block: Mark bdrv_refresh_limits() and callers GRAPH_RDLOCK

This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_refresh_limits() need to hold a reader lock for the graph because
it accesses the children list of a node.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20230504115750.54437-21-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/io.c
include/block/block-global-state.h
include/block/block_int-common.h