commit | 5209d6753c90a3d6411abd0729a9cca3775dce3f | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Wed Mar 27 17:36:29 2013 +0100 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Wed Apr 17 11:43:44 2013 +0200 |
tree | c862a6d124ea97bb122a0717fac2f784d79fd193 | |
parent | cb6247a7e3e07ead908d2e7fbc8848cc2e135056 [diff] |
iov: reorganize iov_send_recv, part 2 Do not touch the "bytes" argument anymore. Instead, remember the original length of the last iovec if we touch it, and restore it afterwards. This requires undoing the changes in opposite order. The previous algorithm didn't care. Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Orit Wassermann <owasserm@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>