vhost/scsi: Convert completion path to use copy_to_iter
authorNicholas Bellinger <nab@linux-iscsi.org>
Tue, 27 Jan 2015 21:13:12 +0000 (13:13 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 4 Feb 2015 18:55:35 +0000 (10:55 -0800)
commit79c14141a487211d1bb7840d3f607766f6115dd2
tree97c32dff53ab137612047ccd5991530f959eb44e
parentb44a2b6790b04621c14de176757a09193699bc37
vhost/scsi: Convert completion path to use copy_to_iter

Required for ANY_LAYOUT support when the incoming virtio-scsi response
header + fixed size sense buffer payload may span more than a single
iovec entry.

This changes existing code to save cmd->tvc_resp_iov instead of the
first single iovec base pointer from &vq->iov[out].

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/scsi.c