vhost/scsi: Add preallocation of protection SGLs
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 23 Feb 2014 02:08:24 +0000 (18:08 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 2 Jun 2014 19:42:01 +0000 (12:42 -0700)
commitb1935f687bb93b207ef690f7debc0e9921fc484f
tree411904ec301b4f92cb3d279b1d311ff89500b1cb
parent5a01d08217e39f3d36d3ca160361c7b019ff1598
vhost/scsi: Add preallocation of protection SGLs

This patch updates tcm_vhost_make_nexus() to pre-allocate per descriptor
tcm_vhost_cmd->tvc_prot_sgl[] used to expose protection SGLs from within
virtio-scsi guest memory to vhost-scsi.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/scsi.c
This page took 0.025723 seconds and 5 git commands to generate.