OSDN Git Service

block: Mark bdrv_*_dirty_bitmap() and callers GRAPH_RDLOCK
authorKevin Wolf <kwolf@redhat.com>
Fri, 3 Feb 2023 15:22:01 +0000 (16:22 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Feb 2023 18:49:32 +0000 (19:49 +0100)
commit167f748d8c1300196ac55fe3eef5518bf7b1f949
treed3f3fdaa356b73219a4f99782af20e93e9ec412f
parent48aef7944090fdddd6a89e07b790798cf31b56a4
block: Mark bdrv_*_dirty_bitmap() and callers GRAPH_RDLOCK

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

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