]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: mark more functions as coroutine_fns and GRAPH_RDLOCK
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Jun 2023 11:51:43 +0000 (13:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 28 Jun 2023 07:46:32 +0000 (09:46 +0200)
commit70bacc44532f6324473b8d701705cd003e2fe678
treebe227fb2a06c627a4f8683002960e3752d1a8b88
parentf6b08994934f89866b510d335c6273bf998e857b
qcow2: mark more functions as coroutine_fns and GRAPH_RDLOCK

Mark functions as coroutine_fn when they are only called by other coroutine_fns
and they can suspend.  Change calls to co_wrappers to use the non-wrapped
functions, which in turn requires adding GRAPH_RDLOCK annotations.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20230601115145.196465-11-pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-bitmap.c
block/qcow2-cluster.c
block/qcow2-refcount.c
block/qcow2.c
block/qcow2.h