diff options
author | Kevin Wolf <kwolf@redhat.com> | 2023-02-03 16:22:02 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-02-23 19:49:33 +0100 |
commit | 8ab8140a04cf771d63e9754d6ba6c1e676bfe507 (patch) | |
tree | 67b585d485e19ab2d0385ea3e0c93106832a76d6 /block/copy-on-read.c | |
parent | 167f748d8c1300196ac55fe3eef5518bf7b1f949 (diff) | |
download | qemu-8ab8140a04cf771d63e9754d6ba6c1e676bfe507.zip qemu-8ab8140a04cf771d63e9754d6ba6c1e676bfe507.tar.gz qemu-8ab8140a04cf771d63e9754d6ba6c1e676bfe507.tar.bz2 |
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>
Diffstat (limited to 'block/copy-on-read.c')
-rw-r--r-- | block/copy-on-read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/copy-on-read.c b/block/copy-on-read.c index 20215cf..cc0f848 100644 --- a/block/copy-on-read.c +++ b/block/copy-on-read.c @@ -121,7 +121,7 @@ static void cor_child_perm(BlockDriverState *bs, BdrvChild *c, } -static int64_t coroutine_fn cor_co_getlength(BlockDriverState *bs) +static int64_t coroutine_fn GRAPH_RDLOCK cor_co_getlength(BlockDriverState *bs) { return bdrv_co_getlength(bs->file->bs); } |