From: Nicholas Bellinger Date: Tue, 19 Feb 2013 05:01:02 +0000 (-0800) Subject: iscsi-target: Enforce individual network portal export once per TargetName X-Git-Tag: v3.9-rc1~71^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e5459353de4ac80924e94fafa8b3e31a086c5dd;p=pandora-kernel.git 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 Tested-by: Andy Grover Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed