]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b68b4c6de34b962a5590144e12d5c3ca8c2544c
tree97c32dff53ab137612047ccd5991530f959eb44e
parent63d44494dd0db8efcfc6028cc2fe26865d73180b
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