diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2013-12-01 22:23:42 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-12-16 10:12:20 +0100 |
commit | e53a18e488c657bbc6f218ae60de8e813a912667 (patch) | |
tree | a34d0514b9d7530e894177ebc4e6df3aec1262a2 /nbd.c | |
parent | 2302c1cafb13df23938b098d9c6595de52ec2577 (diff) |
nbd: don't change socket block during negotiate
The caller might handle non-blocking using coroutine. Leave the choice
to the caller to use a blocking or non-blocking negotiate.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'nbd.c')
-rw-r--r-- | nbd.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -443,7 +443,6 @@ int nbd_receive_negotiate(int csock, const char *name, uint32_t *flags, TRACE("Receiving negotiation."); - qemu_set_block(csock); rc = -EINVAL; if (read_sync(csock, buf, 8) != 8) { @@ -558,7 +557,6 @@ int nbd_receive_negotiate(int csock, const char *name, uint32_t *flags, rc = 0; fail: - qemu_set_nonblock(csock); return rc; } |