summaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc/tcm_fc.h
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2014-04-04 16:54:12 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2014-04-11 15:30:50 -0700
commitd242c1d7d39bb50d2816a2834b84c420c3e7084e (patch)
treed693093cca72b2e40b6b7d7a7861e44b753804fe /drivers/target/tcm_fc/tcm_fc.h
parentb295e76900223e4b8e350d02f7b6801fe126d8d2 (diff)
downloadop-kernel-dev-d242c1d7d39bb50d2816a2834b84c420c3e7084e.zip
op-kernel-dev-d242c1d7d39bb50d2816a2834b84c420c3e7084e.tar.gz
target/tcm_fc: Limit to 1 TPG per wwn
tcm_fc doesn't support multiple TPGs per wwn. For proof, see ft_lport_find_tpg. Enforce this in the code. Replace ft_lport_wwn.tpg_list with a single pointer. We can't fold ft_tpg into ft_lport_wwn because they can have different lifetimes. Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/tcm_fc/tcm_fc.h')
-rw-r--r--drivers/target/tcm_fc/tcm_fc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/target/tcm_fc/tcm_fc.h b/drivers/target/tcm_fc/tcm_fc.h
index aba6861..7290f8f 100644
--- a/drivers/target/tcm_fc/tcm_fc.h
+++ b/drivers/target/tcm_fc/tcm_fc.h
@@ -96,7 +96,6 @@ struct ft_tpg {
u32 index;
struct ft_lport_acl *lport_acl;
struct ft_tport *tport; /* active tport or NULL */
- struct list_head list; /* linkage in ft_lport_acl tpg_list */
struct list_head lun_list; /* head of LUNs */
struct se_portal_group se_tpg;
struct workqueue_struct *workqueue;
@@ -105,8 +104,8 @@ struct ft_tpg {
struct ft_lport_acl {
u64 wwpn;
char name[FT_NAMELEN];
+ struct ft_tpg *tpg;
struct list_head list;
- struct list_head tpg_list;
struct se_wwn fc_lport_wwn;
};
OpenPOWER on IntegriCloud