summaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi/iscsi_target_tq.h
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2013-02-18 21:01:02 -0800
committerNicholas Bellinger <nab@linux-iscsi.org>2013-02-19 17:58:12 -0800
commit6e5459353de4ac80924e94fafa8b3e31a086c5dd (patch)
tree18066f37c9070b23b30754052d113b2f6fb9022c /drivers/target/iscsi/iscsi_target_tq.h
parent05b9689245c1b2f0dea38c1cb4882810ce3adda8 (diff)
downloadblackbird-obmc-linux-6e5459353de4ac80924e94fafa8b3e31a086c5dd.tar.gz
blackbird-obmc-linux-6e5459353de4ac80924e94fafa8b3e31a086c5dd.zip
iscsi-target: Enforce individual network portal export once per TargetName
This patch enforces individual network portal export on a once per TargetName basis, thus preventing a network portal from being exported multiple times across multiple TargetPortalGroups in a single TargetName instance. This is done in iscsit_tpg_check_network_portal() by walking tiqn->tiqn_tpg_list and tpg->tpg_gnp_list using iscsit_check_np_match() looking for an existing network portal mapping from iscsit_tpg_add_network_portal() context, but only when no pre-existing tpg_np_parent pointer is present. Reported-by: Andy Grover <agrover@redhat.com> Tested-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_tq.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud