]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 22 May 2014 20:39:45 +0000 (13:39 -0700)
commitddd5113e107db778ee61eab73eb4ef49d9859a19
tree411904ec301b4f92cb3d279b1d311ff89500b1cb
parentc96572b83a077e1b39c43ca2dec82e863d15bbc3
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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/scsi.c