vvfat: mark various functions as coroutine_fn
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Mar 2023 08:44:48 +0000 (09:44 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 25 Apr 2023 11:17:28 +0000 (13:17 +0200)
commiteab76d58462016e9fe35a51bab6917d254e82139
tree5a92e3494676acd99af4c7adf0f1e63aa83e2448
parentaef04fc79084fe340c931679413eb6070f2f13ca
vvfat: mark various functions as coroutine_fn

Functions that can do I/O are prime candidates for being coroutine_fns.  Make the
change for those that are themselves called only from coroutine_fns.

In addition, coroutine_fns should do I/O using bdrv_co_*() functions, for
which it is required to hold the BlockDriverState graph lock.  So also nnotate
functions on the I/O path with TSA attributes, making it possible to
switch them to use bdrv_co_*() functions.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20230309084456.304669-2-pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c