]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1ae13317ba0e268462b1ca3d8b6006c8cb106c87
treed693093cca72b2e40b6b7d7a7861e44b753804fe
parentb29f0398ed1696bee422c1352a69aa8a7690d71d
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