]> git.proxmox.com Git - mirror_qemu.git/commit
nbd: fix NBD over TLS
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 Jun 2017 17:09:05 +0000 (19:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Jul 2017 12:30:03 +0000 (14:30 +0200)
commit96d06835dc40007673cdfab6322e9042c4077113
tree81af3a09fe5ebde3fb70fbd9b3aeb5a52edfd34b
parentabc67eb6e8577fe15c9c27551d6b9c5e5bc08049
nbd: fix NBD over TLS

When attaching the NBD QIOChannel to an AioContext, the TLS channel should
be used, not the underlying socket channel.  This is because, trivially,
the TLS channel will be the one that we read/write to and thus the one
that will get the qio_channel_yield() call.

Fixes: ff82911cd3f69f028f2537825c9720ff78bc3f19
Cc: qemu-stable@nongnu.org
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Tested-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/nbd-client.c