vhost-scsi: Add missing virtio-scsi -> TCM attribute conversion
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 21 Dec 2014 18:42:08 +0000 (10:42 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 6 Jan 2015 21:46:29 +0000 (13:46 -0800)
commit46243860806bdc2756f3ce8ac86b4d7c616bcd6c
tree9f3566128019cb222ed2dbb6ba730aa356bc750b
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
vhost-scsi: Add missing virtio-scsi -> TCM attribute conversion

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>
Cc: stable@vger.kernel.org # 3.5
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/scsi.c