]> Git Repo - qemu.git/commit - nbd/client.c
nbd: convert to use qio_channel_yield
authorPaolo Bonzini <[email protected]>
Mon, 13 Feb 2017 13:52:24 +0000 (14:52 +0100)
committerStefan Hajnoczi <[email protected]>
Tue, 21 Feb 2017 11:14:08 +0000 (11:14 +0000)
commitff82911cd3f69f028f2537825c9720ff78bc3f19
tree68ea48537278208b0246e42061fcf2ac9b22cf1d
parentc4c497d27f0be8552ae244e76ba2bce66bd2443e
nbd: convert to use qio_channel_yield

In the client, read the reply headers from a coroutine, switching the
read side between the "read header" coroutine and the I/O coroutine that
reads the body of the reply.

In the server, if the server can read more requests it will create a new
"read request" coroutine as soon as a request has been read.  Otherwise,
the new coroutine is created in nbd_request_put.

Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Reviewed-by: Fam Zheng <[email protected]>
Reviewed-by: Daniel P. Berrange <[email protected]>
Message-id: 20170213135235[email protected]
Signed-off-by: Stefan Hajnoczi <[email protected]>
block/nbd-client.c
block/nbd-client.h
nbd/client.c
nbd/common.c
nbd/server.c
This page took 0.02423 seconds and 4 git commands to generate.