OSDN Git Service

vmdk: mark more functions as coroutine_fns and GRAPH_RDLOCK
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Jun 2023 11:51:41 +0000 (13:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 28 Jun 2023 07:46:29 +0000 (09:46 +0200)
commit28944f99c473f55b6b5a4210f697f7eec9a9bc23
tree7bb22a6ee8c7da12bd68105eca0e75fa80ca834f
parent688dc49da5af749c54def041b8e1594adf048f96
vmdk: 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-9-pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c