]> git.proxmox.com Git - mirror_qemu.git/commit - block/throttle.c
block: Mark bdrv_co_refresh_total_sectors() and callers GRAPH_RDLOCK
authorKevin Wolf <kwolf@redhat.com>
Fri, 3 Feb 2023 15:22:02 +0000 (16:22 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Feb 2023 18:49:33 +0000 (19:49 +0100)
commit8ab8140a04cf771d63e9754d6ba6c1e676bfe507
tree67b585d485e19ab2d0385ea3e0c93106832a76d6
parent167f748d8c1300196ac55fe3eef5518bf7b1f949
block: Mark bdrv_co_refresh_total_sectors() and callers GRAPH_RDLOCK

This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_co_refresh_total_sectors() need to hold a reader lock for the
graph.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230203152202.49054-24-kwolf@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
18 files changed:
block.c
block/blkdebug.c
block/blklogwrites.c
block/blkreplay.c
block/blkverify.c
block/copy-on-read.c
block/crypto.c
block/filter-compress.c
block/mirror.c
block/preallocate.c
block/quorum.c
block/raw-format.c
block/replication.c
block/stream.c
block/throttle.c
include/block/block-io.h
include/block/block_int-common.h
include/block/block_int-io.h