]> git.proxmox.com Git - mirror_qemu.git/commit - block/raw-format.c
block: Mark bdrv_co_eject/lock_medium() and callers GRAPH_RDLOCK
authorKevin Wolf <kwolf@redhat.com>
Fri, 3 Feb 2023 15:21:58 +0000 (16:21 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Feb 2023 18:49:26 +0000 (19:49 +0100)
commit79a292e5ec767eea27a0cc456570ee028f4e3972
tree22f03a4c1f1cdc65a8cbde01222126ae8f3de82e
parentc73ff92c9d00f9aa535044e7348d0330aa94f467
block: Mark bdrv_co_eject/lock_medium() and callers GRAPH_RDLOCK

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

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230203152202.49054-20-kwolf@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/block-backend.c
block/copy-on-read.c
block/filter-compress.c
block/raw-format.c
include/block/block-io.h
include/block/block_int-common.h