]> git.proxmox.com Git - mirror_qemu.git/commit
block: Mark bdrv_(un)register_buf() GRAPH_RDLOCK
authorKevin Wolf <kwolf@redhat.com>
Fri, 3 Feb 2023 15:21:59 +0000 (16:21 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Feb 2023 18:49:29 +0000 (19:49 +0100)
commitd9249c253c28ef836641bea98180784fc2e9f655
treeb06ec60ff519c9ef51e946fc6bf40270886724c3
parent79a292e5ec767eea27a0cc456570ee028f4e3972
block: Mark bdrv_(un)register_buf() GRAPH_RDLOCK

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

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230203152202.49054-21-kwolf@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/io.c
include/block/block_int-common.h