History | View | Annotate | Download (11 kB)
Split nbd block client code
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>
nbd: don't change socket block during negotiate
The caller might handle non-blocking using coroutine. Leave the choiceto 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>...
nbd: pass export name as init argument
There is no need to keep the export name around, and it seems a betterfit as an argument in the init() call.
nbd: make nbd_client_session_close() idempotent
nbd: finish any pending coroutine
Make sure all pending coroutines are finished when closing the session.
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>Acked-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
nbd: avoid uninitialized warnings