]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcm_loop: Fixup tag handling
authorHannes Reinecke <hare@suse.de>
Thu, 2 Oct 2014 07:30:55 +0000 (09:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jan 2015 16:18:58 +0000 (08:18 -0800)
commit386241c97f30fa473b106beb57863cf05d220ea2
treeeb328287d42b716222602adae4c6a1f055d25549
parent7055233b96b0337e1d918ad093af402fd32fe4ad
tcm_loop: Fixup tag handling

commit 6375f8908255ea7438b60bb5998e6b3e1628500d 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/loopback/tcm_loop.c