OSDN Git Service

block: mark another function as coroutine_fns and GRAPH_UNLOCKED
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Jun 2023 11:51:38 +0000 (13:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 28 Jun 2023 07:46:25 +0000 (09:46 +0200)
commit84569a7df34c37aeb6b7cfa52bd803f66aa4ca0d
tree1117019761b2ea180aa3f8d8a5cc9b08f8081a82
parente7918e96193dbaf334c480ddde58ebc1370a84f6
block: mark another function as coroutine_fns and GRAPH_UNLOCKED

Mark functions as coroutine_fn when they are only called by other coroutine_fns
and they can suspend.  Because this function operates on a BlockBackend, mark it
GRAPH_UNLOCKED.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20230601115145.196465-6-pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c