OSDN Git Service

tcm_loop: Fix wrong I_T nexus association
authorHannes Reinecke <hare@suse.de>
Wed, 26 Nov 2014 13:58:57 +0000 (14:58 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 Dec 2014 05:36:21 +0000 (21:36 -0800)
commit506787a2c7daed45f0a213674ca706cbc83a9089
treed8734240e8977854cc1845d7fa173d76bc3d923c
parent4b2f57e5ced40e91cbf8886d7dc40a9474d2f5c0
tcm_loop: Fix wrong I_T nexus association

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>
Cc: <stable@vger.kernel.org> # 3.0+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/loopback/tcm_loop.c
drivers/target/loopback/tcm_loop.h