diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-09-22 10:49:09 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2022-10-07 12:11:40 +0200 |
commit | ee15ee36205258ba7ced7a48358e32468109cd70 (patch) | |
tree | 85b00d4622dd1cd7715d29f3fa6fd522ee6f9a45 /block/nfs.c | |
parent | 8e5a19df670423d5166351c38fa5b849d13ffb2e (diff) | |
download | qemu-ee15ee36205258ba7ced7a48358e32468109cd70.zip qemu-ee15ee36205258ba7ced7a48358e32468109cd70.tar.gz qemu-ee15ee36205258ba7ced7a48358e32468109cd70.tar.bz2 |
nfs: add missing coroutine_fn annotations
Callers of coroutine_fn must be coroutine_fn themselves, or the call
must be within "if (qemu_in_coroutine())". Apply coroutine_fn to
functions where this holds.
Reviewed-by: Alberto Faria <afaria@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220922084924.201610-12-pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/nfs.c')
-rw-r--r-- | block/nfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/nfs.c b/block/nfs.c index 444c40b..596ebe9 100644 --- a/block/nfs.c +++ b/block/nfs.c @@ -223,7 +223,7 @@ static void nfs_process_write(void *arg) qemu_mutex_unlock(&client->mutex); } -static void nfs_co_init_task(BlockDriverState *bs, NFSRPC *task) +static void coroutine_fn nfs_co_init_task(BlockDriverState *bs, NFSRPC *task) { *task = (NFSRPC) { .co = qemu_coroutine_self(), |