]> git.ipfire.org Git - people/ms/linux.git/commit
tcm_loop: Fix wrong I_T nexus association
authorHannes Reinecke <hare@suse.de>
Fri, 30 Jan 2015 22:17:23 +0000 (22:17 +0000)
committerJiri Slaby <jslaby@suse.cz>
Mon, 2 Feb 2015 18:02:39 +0000 (19:02 +0100)
commitdddbc77e40b3af8bb32f49f1b4dc424bba45e59c
tree41f9a836cf3e0e9434e101d0d97d782d6fa1feab
parent4602761bac19ae3373f003bc3cabc4546c8e5207
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: Jiri Slaby <jslaby@suse.cz>
drivers/target/loopback/tcm_loop.c
drivers/target/loopback/tcm_loop.h