tcm_loop: Fix wrong I_T nexus association
authorHannes Reinecke <hare@suse.de>
Fri, 30 Jan 2015 22:17:23 +0000 (22:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2015 06:35:40 +0000 (22:35 -0800)
commit9ed763fc279b669a1b8389164ce9bbc28338f7a8
treeeb43ae2b8f6572fa27c67aeb79dfd3f4e3d78f8c
parent3ce3a8612dd01acab5c60ebf51daf85b0001a0c5
tcm_loop: Fix wrong I_T nexus association

commit 506787a2c7daed45f0a213674ca706cbc83a9089 upstream.

tcm_loop has the I_T nexus associated with the HBA. This causes
commands to become misdirected if the HBA has more than one
target portal group; any command is then being sent to the
first target portal group instead of the correct one.

The nexus needs to be associated with the target portal group
instead.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/loopback/tcm_loop.c
drivers/target/loopback/tcm_loop.h