]> git.baikalelectronics.ru Git - kernel.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>
Mon, 2 Jun 2014 19:42:01 +0000 (12:42 -0700)
commit13d176b532baff202b9c702a54f43bc8f81b4729
tree411904ec301b4f92cb3d279b1d311ff89500b1cb
parentc70822f705fa7aa88689ff2883284c24b459c53c
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