OSDN Git Service

block/nbd: use non-blocking io channel for nbd negotiation
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 18 Jun 2019 11:43:21 +0000 (14:43 +0300)
committerEric Blake <eblake@redhat.com>
Thu, 15 Aug 2019 18:22:14 +0000 (13:22 -0500)
commita8e2bb6a76c7c661c117327f70f06eb628554230
tree6ea29153f1608699a6014101e3e9c10e353dc66d
parent962b7b3d4c3aed241ec28ea712ec9079ac98d3ad
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>
block/nbd.c
include/block/nbd.h
nbd/client.c
qemu-nbd.c