nbd: don't change socket block during negotiate
commite53a18e488c657bbc6f218ae60de8e813a912667
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 1 Dec 2013 21:23:42 +0000 (1 22:23 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 16 Dec 2013 09:12:20 +0000 (16 10:12 +0100)
treea34d0514b9d7530e894177ebc4e6df3aec1262a2
parent2302c1cafb13df23938b098d9c6595de52ec2577
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>
block/nbd-client.c
nbd.c