OSDN Git Service

file-posix: remove incorrect coroutine_fn calls
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Jun 2023 11:51:34 +0000 (13:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 28 Jun 2023 07:46:14 +0000 (09:46 +0200)
commit36c6c8773a20e0205046f95c5688b3f17a4d552d
treee340f85dc78f7494a6f3d2e9690e85bed471d5a1
parent3cce22defb4b0e47cf135444e30cc673cff5ebad
file-posix: remove incorrect coroutine_fn calls

raw_co_getlength is called by handle_aiocb_write_zeroes, which is not a coroutine
function.  This is harmless because raw_co_getlength does not actually suspend,
but in the interest of clarity make it a non-coroutine_fn that is just wrapped
by the coroutine_fn raw_co_getlength.  Likewise, check_cache_dropped was only
a coroutine_fn because it called raw_co_getlength, so it can be made non-coroutine
as well.

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