vhost-scsi: Add missing virtio-scsi -> TCM attribute conversion
commit24d2683ee34ce75c48969b9b0fdce138e43e6d01
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 21 Dec 2014 18:42:08 +0000 (21 10:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jan 2015 16:18:58 +0000 (27 08:18 -0800)
tree7cfbfe4e65b1a966b018f634c2323ba82bb14b8f
parenteb7c55639c00e5f0bf05f1dcf126fb49931a3e3f
vhost-scsi: Add missing virtio-scsi -> TCM attribute conversion

commit 46243860806bdc2756f3ce8ac86b4d7c616bcd6c upstream.

While looking at hch's recent conversion to drop the MSG_*_TAG
definitions, I noticed a long standing bug in vhost-scsi where
the VIRTIO_SCSI_S_* attribute definitions where incorrectly
being passed directly into target_submit_cmd_map_sgls().

This patch adds the missing virtio-scsi to TCM/SAM task attribute
conversion.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vhost/scsi.c