summaryrefslogtreecommitdiffstats
path: root/qemu-nbd.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2019-06-18 13:43:21 +0200
committerEric Blake2019-08-15 20:22:14 +0200
commita8e2bb6a76c7c661c117327f70f06eb628554230 (patch)
tree6ea29153f1608699a6014101e3e9c10e353dc66d /qemu-nbd.c
parentblock/nbd: split connection_co start out of nbd_client_connect (diff)
downloadqemu-a8e2bb6a76c7c661c117327f70f06eb628554230.tar.gz
qemu-a8e2bb6a76c7c661c117327f70f06eb628554230.tar.xz
qemu-a8e2bb6a76c7c661c117327f70f06eb628554230.zip
block/nbd: use non-blocking io channel for nbd negotiation
No reason to use blocking channel for negotiation and we'll benefit in further reconnect feature, as qio_channel reads and writes will do qemu_coroutine_yield while waiting for io completion. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20190618114328.55249-3-vsementsov@virtuozzo.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'qemu-nbd.c')
-rw-r--r--qemu-nbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-nbd.c b/qemu-nbd.c
index a8cb39e510..049645491d 100644
--- a/qemu-nbd.c
+++ b/qemu-nbd.c
@@ -362,7 +362,7 @@ static void *nbd_client_thread(void *arg)
goto out;
}
- ret = nbd_receive_negotiate(QIO_CHANNEL(sioc),
+ ret = nbd_receive_negotiate(NULL, QIO_CHANNEL(sioc),
NULL, NULL, NULL, &info, &local_error);
if (ret < 0) {
if (local_error) {