]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 29 Jan 2015 14:44:48 +0000 (15:44 +0100)
commit785845986d23629bd0b2286b00101ba01c40fce0
tree5ca71496317c137e7199a821174f03b968661391
parentb745a867f00067b81579ec373f71224401eeebc2
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: Jiri Slaby <jslaby@suse.cz>
drivers/vhost/scsi.c