summaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc/tcm_fc.h
diff options
context:
space:
mode:
authorAndy Grover2014-04-05 01:54:12 +0200
committerNicholas Bellinger2014-04-12 00:30:50 +0200
commitd242c1d7d39bb50d2816a2834b84c420c3e7084e (patch)
treed693093cca72b2e40b6b7d7a7861e44b753804fe /drivers/target/tcm_fc/tcm_fc.h
parenttarget/tcm_fc: Don't export ft_lport_list (diff)
downloadkernel-qcow2-linux-d242c1d7d39bb50d2816a2834b84c420c3e7084e.tar.gz
kernel-qcow2-linux-d242c1d7d39bb50d2816a2834b84c420c3e7084e.tar.xz
kernel-qcow2-linux-d242c1d7d39bb50d2816a2834b84c420c3e7084e.zip
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 aba6861c362b..7290f8fb53f0 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;
};