diff options
| author | Paolo Bonzini | 2022-09-22 10:49:09 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2022-10-07 12:11:40 +0200 |
| commit | ee15ee36205258ba7ced7a48358e32468109cd70 (patch) | |
| tree | 85b00d4622dd1cd7715d29f3fa6fd522ee6f9a45 /block | |
| parent | nbd: add missing coroutine_fn annotations (diff) | |
| download | qemu-ee15ee36205258ba7ced7a48358e32468109cd70.tar.gz qemu-ee15ee36205258ba7ced7a48358e32468109cd70.tar.xz qemu-ee15ee36205258ba7ced7a48358e32468109cd70.zip | |
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')
| -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 444c40b458..596ebe98cb 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(), |
