target/tcm_fc: Limit to 1 TPG per wwn
authorAndy Grover <agrover@redhat.com>
Fri, 4 Apr 2014 23:54:12 +0000 (16:54 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Apr 2014 22:30:50 +0000 (15:30 -0700)
commitd242c1d7d39bb50d2816a2834b84c420c3e7084e
treed693093cca72b2e40b6b7d7a7861e44b753804fe
parentb295e76900223e4b8e350d02f7b6801fe126d8d2
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>
drivers/target/tcm_fc/tcm_fc.h
drivers/target/tcm_fc/tfc_conf.c