xemu/nbd
Vladimir Sementsov-Ogievskiy f250a42dda nbd: strict nbd_wr_syncv
nbd_wr_syncv is called either from coroutine or from client negotiation
code, when socket is in blocking mode. So, -EAGAIN is impossible.

Furthermore, EAGAIN is confusing, as, what to read/write again? With
EAGAIN as a return code we don't know how much data is already
read or written by the function, so in case of EAGAIN the whole
communication is broken.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20170516094533.6160-2-vsementsov@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-06-06 20:18:35 +02:00
..
client.c nbd-client: fix handling of hungup connections 2017-03-27 16:50:36 +02:00
common.c nbd: strict nbd_wr_syncv 2017-06-06 20:18:35 +02:00
Makefile.objs nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
nbd-internal.h io: change the QIOTask callback signature 2017-01-23 15:32:18 +00:00
server.c nbd/server: Use real permissions for NBD exports 2017-02-28 20:47:50 +01:00