diff options
author | Paolo Bonzini | 2022-09-22 10:49:02 +0200 |
---|---|---|
committer | Kevin Wolf | 2022-10-07 12:11:40 +0200 |
commit | 9fb26291acf9806e5b1211db2315e1d4140cfe40 (patch) | |
tree | 15736c6279c54ee3ee1b9a930769032a4b1a6f65 /include | |
parent | qcow2: remove incorrect coroutine_fn annotations (diff) | |
download | qemu-9fb26291acf9806e5b1211db2315e1d4140cfe40.tar.gz qemu-9fb26291acf9806e5b1211db2315e1d4140cfe40.tar.xz qemu-9fb26291acf9806e5b1211db2315e1d4140cfe40.zip |
nbd: remove incorrect coroutine_fn annotations
nbd_co_establish_connection_cancel() cancels a coroutine but is not called
from coroutine context itself, for example in nbd_cancel_in_flight()
and in timer callbacks reconnect_delay_timer_cb() and open_timer_cb().
Reviewed-by: Alberto Faria <afaria@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220922084924.201610-5-pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/block/nbd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/block/nbd.h b/include/block/nbd.h index c74b7a9d2e..4ede3b2bd0 100644 --- a/include/block/nbd.h +++ b/include/block/nbd.h @@ -424,6 +424,6 @@ QIOChannel *coroutine_fn nbd_co_establish_connection(NBDClientConnection *conn, NBDExportInfo *info, bool blocking, Error **errp); -void coroutine_fn nbd_co_establish_connection_cancel(NBDClientConnection *conn); +void nbd_co_establish_connection_cancel(NBDClientConnection *conn); #endif |