linux/drivers/target/loopback
Hannes Reinecke 576e0cda48 tcm_loop: Fixup tag handling
commit 6375f89082 upstream.

The SCSI command tag is set to the tag assigned from the block
layer, not the SCSI-II tag message. So we need to convert
it into the correct SCSI-II tag message based on the
device flags, not the tag value itself.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
[ luis: backported to 3.16:
  - adjusted context, as commit 506787a2c7 ("tcm_loop: Fix wrong I_T
    nexus association") had already been applied to 3.16 ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-01-22 16:33:35 +00:00
..
Kconfig target: Follow up core updates from AGrover and HCH (round 4) 2011-07-22 09:37:48 +00:00
Makefile [SCSI] tcm_loop: Add multi-fabric Linux/SCSI LLD fabric module 2011-03-23 13:10:33 -05:00
tcm_loop.c tcm_loop: Fixup tag handling 2015-01-22 16:33:35 +00:00
tcm_loop.h tcm_loop: Fix wrong I_T nexus association 2015-01-15 10:44:18 +00:00