commit | 72deddc5e61e974fbf561dc704742f102b91de82 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri Oct 07 16:47:56 2011 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Dec 22 11:53:59 2011 +0100 |
tree | e03c6eeb57076a8cd0052e62419e67e9969492ea | |
parent | 1743b515860ef645b285908ee367c5e343e0020c [diff] |
qemu-nbd: add client pointer to NBDRequest By attaching a client to an NBDRequest, we can avoid passing around the socket descriptor and data buffer. Also, we can now manage the reference count for the client in nbd_request_get/put request instead of having to do it ourselved in nbd_read. This simplifies things when coroutines are used. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>