tcm_loop: Fixup tag handling
authorHannes Reinecke <hare@suse.de>
Thu, 2 Oct 2014 07:30:55 +0000 (09:30 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 3 Oct 2014 18:16:12 +0000 (11:16 -0700)
commit6375f8908255ea7438b60bb5998e6b3e1628500d
treee8a887292c2820129763c60b3bbc96a187a872b0
parent1acff63f6ec2622662e647364293cc3ca495401f
tcm_loop: Fixup tag handling

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>
drivers/target/loopback/tcm_loop.c